home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / MPWGCC (Sources).cpt / Sources / c-parse.y < prev    next >
MacBinary  |  1990-11-15  |  83.5 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu Nov 15 09:40:51 1990, modified Thu Nov 15 09:40:51 1990, creator 'MPS ', type ASCII, 84764 bytes "c-parse.y" , at 0x14b9c 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 63 2d 70 61 72 73 | 65 2e 79 00 00 00 00 00 |..c-pars|e.y.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 01 4b 1c 00 | 00 01 ac a3 68 59 73 a3 |.....K..|....hYs.|
|00000060| 68 59 73 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |hYs.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fe 38 00 00 |........|.....8..|
|00000080| 2f 2a 20 59 41 43 43 20 | 70 61 72 73 65 72 20 66 |/* YACC |parser f|
|00000090| 6f 72 20 43 20 73 79 6e | 74 61 78 2e 0d 20 20 20 |or C syn|tax.. |
|000000a0| 43 6f 70 79 72 69 67 68 | 74 20 28 43 29 20 31 39 |Copyrigh|t (C) 19|
|000000b0| 38 37 2c 20 31 39 38 38 | 2c 20 31 39 38 39 20 46 |87, 1988|, 1989 F|
|000000c0| 72 65 65 20 53 6f 66 74 | 77 61 72 65 20 46 6f 75 |ree Soft|ware Fou|
|000000d0| 6e 64 61 74 69 6f 6e 2c | 20 49 6e 63 2e 0d 20 20 |ndation,| Inc.. |
|000000e0| 20 43 6f 70 79 72 69 67 | 68 74 20 28 43 29 20 31 | Copyrig|ht (C) 1|
|000000f0| 39 38 39 2c 20 31 39 39 | 30 20 41 70 70 6c 65 20 |989, 199|0 Apple |
|00000100| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 0d 0d |Computer|, Inc...|
|00000110| 54 68 69 73 20 66 69 6c | 65 20 69 73 20 70 61 72 |This fil|e is par|
|00000120| 74 20 6f 66 20 47 4e 55 | 20 43 43 2e 0d 0d 47 4e |t of GNU| CC...GN|
|00000130| 55 20 43 43 20 69 73 20 | 66 72 65 65 20 73 6f 66 |U CC is |free sof|
|00000140| 74 77 61 72 65 3b 20 79 | 6f 75 20 63 61 6e 20 72 |tware; y|ou can r|
|00000150| 65 64 69 73 74 72 69 62 | 75 74 65 20 69 74 20 61 |edistrib|ute it a|
|00000160| 6e 64 2f 6f 72 20 6d 6f | 64 69 66 79 0d 69 74 20 |nd/or mo|dify.it |
|00000170| 75 6e 64 65 72 20 74 68 | 65 20 74 65 72 6d 73 20 |under th|e terms |
|00000180| 6f 66 20 74 68 65 20 47 | 4e 55 20 47 65 6e 65 72 |of the G|NU Gener|
|00000190| 61 6c 20 50 75 62 6c 69 | 63 20 4c 69 63 65 6e 73 |al Publi|c Licens|
|000001a0| 65 20 61 73 20 70 75 62 | 6c 69 73 68 65 64 20 62 |e as pub|lished b|
|000001b0| 79 0d 74 68 65 20 46 72 | 65 65 20 53 6f 66 74 77 |y.the Fr|ee Softw|
|000001c0| 61 72 65 20 46 6f 75 6e | 64 61 74 69 6f 6e 3b 20 |are Foun|dation; |
|000001d0| 65 69 74 68 65 72 20 76 | 65 72 73 69 6f 6e 20 31 |either v|ersion 1|
|000001e0| 2c 20 6f 72 20 28 61 74 | 20 79 6f 75 72 20 6f 70 |, or (at| your op|
|000001f0| 74 69 6f 6e 29 0d 61 6e | 79 20 6c 61 74 65 72 20 |tion).an|y later |
|00000200| 76 65 72 73 69 6f 6e 2e | 0d 0d 47 4e 55 20 43 43 |version.|..GNU CC|
|00000210| 20 69 73 20 64 69 73 74 | 72 69 62 75 74 65 64 20 | is dist|ributed |
|00000220| 69 6e 20 74 68 65 20 68 | 6f 70 65 20 74 68 61 74 |in the h|ope that|
|00000230| 20 69 74 20 77 69 6c 6c | 20 62 65 20 75 73 65 66 | it will| be usef|
|00000240| 75 6c 2c 0d 62 75 74 20 | 57 49 54 48 4f 55 54 20 |ul,.but |WITHOUT |
|00000250| 41 4e 59 20 57 41 52 52 | 41 4e 54 59 3b 20 77 69 |ANY WARR|ANTY; wi|
|00000260| 74 68 6f 75 74 20 65 76 | 65 6e 20 74 68 65 20 69 |thout ev|en the i|
|00000270| 6d 70 6c 69 65 64 20 77 | 61 72 72 61 6e 74 79 20 |mplied w|arranty |
|00000280| 6f 66 0d 4d 45 52 43 48 | 41 4e 54 41 42 49 4c 49 |of.MERCH|ANTABILI|
|00000290| 54 59 20 6f 72 20 46 49 | 54 4e 45 53 53 20 46 4f |TY or FI|TNESS FO|
|000002a0| 52 20 41 20 50 41 52 54 | 49 43 55 4c 41 52 20 50 |R A PART|ICULAR P|
|000002b0| 55 52 50 4f 53 45 2e 20 | 20 53 65 65 20 74 68 65 |URPOSE. | See the|
|000002c0| 0d 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 |.GNU Gen|eral Pub|
|000002d0| 6c 69 63 20 4c 69 63 65 | 6e 73 65 20 66 6f 72 20 |lic Lice|nse for |
|000002e0| 6d 6f 72 65 20 64 65 74 | 61 69 6c 73 2e 0d 0d 59 |more det|ails...Y|
|000002f0| 6f 75 20 73 68 6f 75 6c | 64 20 68 61 76 65 20 72 |ou shoul|d have r|
|00000300| 65 63 65 69 76 65 64 20 | 61 20 63 6f 70 79 20 6f |eceived |a copy o|
|00000310| 66 20 74 68 65 20 47 4e | 55 20 47 65 6e 65 72 61 |f the GN|U Genera|
|00000320| 6c 20 50 75 62 6c 69 63 | 20 4c 69 63 65 6e 73 65 |l Public| License|
|00000330| 0d 61 6c 6f 6e 67 20 77 | 69 74 68 20 47 4e 55 20 |.along w|ith GNU |
|00000340| 43 43 3b 20 73 65 65 20 | 74 68 65 20 66 69 6c 65 |CC; see |the file|
|00000350| 20 43 4f 50 59 49 4e 47 | 2e 20 20 49 66 20 6e 6f | COPYING|. If no|
|00000360| 74 2c 20 77 72 69 74 65 | 20 74 6f 0d 74 68 65 20 |t, write| to.the |
|00000370| 46 72 65 65 20 53 6f 66 | 74 77 61 72 65 20 46 6f |Free Sof|tware Fo|
|00000380| 75 6e 64 61 74 69 6f 6e | 2c 20 36 37 35 20 4d 61 |undation|, 675 Ma|
|00000390| 73 73 20 41 76 65 2c 20 | 43 61 6d 62 72 69 64 67 |ss Ave, |Cambridg|
|000003a0| 65 2c 20 4d 41 20 30 32 | 31 33 39 2c 20 55 53 41 |e, MA 02|139, USA|
|000003b0| 2e 20 20 2a 2f 0d 0d 0d | 2f 2a 20 54 6f 20 77 68 |. */...|/* To wh|
|000003c0| 6f 6d 65 76 65 72 20 69 | 74 20 6d 61 79 20 63 6f |omever i|t may co|
|000003d0| 6e 63 65 72 6e 3a 20 49 | 20 68 61 76 65 20 68 65 |ncern: I| have he|
|000003e0| 61 72 64 20 74 68 61 74 | 20 73 75 63 68 20 61 20 |ard that| such a |
|000003f0| 74 68 69 6e 67 20 77 61 | 73 20 6f 6e 63 65 0d 77 |thing wa|s once.w|
|00000400| 72 69 74 74 65 6e 20 62 | 79 20 41 54 26 54 2c 20 |ritten b|y AT&T, |
|00000410| 62 75 74 20 49 20 68 61 | 76 65 20 6e 65 76 65 72 |but I ha|ve never|
|00000420| 20 73 65 65 6e 20 69 74 | 2e 20 20 2a 2f 0d 0d 25 | seen it|. */..%|
|00000430| 65 78 70 65 63 74 20 38 | 0d 0d 2f 2a 20 54 68 65 |expect 8|../* The|
|00000440| 73 65 20 61 72 65 20 74 | 68 65 20 38 20 63 6f 6e |se are t|he 8 con|
|00000450| 66 6c 69 63 74 73 20 79 | 6f 75 20 73 68 6f 75 6c |flicts y|ou shoul|
|00000460| 64 20 67 65 74 20 69 6e | 20 70 61 72 73 65 2e 6f |d get in| parse.o|
|00000470| 75 74 70 75 74 3b 0d 20 | 20 20 74 68 65 20 73 74 |utput;. | the st|
|00000480| 61 74 65 20 6e 75 6d 62 | 65 72 73 20 6d 61 79 20 |ate numb|ers may |
|00000490| 76 61 72 79 20 69 66 20 | 6d 69 6e 6f 72 20 63 68 |vary if |minor ch|
|000004a0| 61 6e 67 65 73 20 69 6e | 20 74 68 65 20 67 72 61 |anges in| the gra|
|000004b0| 6d 6d 61 72 20 61 72 65 | 20 6d 61 64 65 2e 0d 0d |mmar are| made...|
|000004c0| 53 74 61 74 65 20 34 31 | 20 63 6f 6e 74 61 69 6e |State 41| contain|
|000004d0| 73 20 31 20 73 68 69 66 | 74 2f 72 65 64 75 63 65 |s 1 shif|t/reduce|
|000004e0| 20 63 6f 6e 66 6c 69 63 | 74 2e 20 20 28 54 77 6f | conflic|t. (Two|
|000004f0| 20 77 61 79 73 20 74 6f | 20 72 65 63 6f 76 65 72 | ways to| recover|
|00000500| 20 66 72 6f 6d 20 65 72 | 72 6f 72 2e 29 0d 53 74 | from er|ror.).St|
|00000510| 61 74 65 20 39 32 20 63 | 6f 6e 74 61 69 6e 73 20 |ate 92 c|ontains |
|00000520| 31 20 73 68 69 66 74 2f | 72 65 64 75 63 65 20 63 |1 shift/|reduce c|
|00000530| 6f 6e 66 6c 69 63 74 2e | 20 20 28 54 77 6f 20 77 |onflict.| (Two w|
|00000540| 61 79 73 20 74 6f 20 72 | 65 63 6f 76 65 72 20 66 |ays to r|ecover f|
|00000550| 72 6f 6d 20 65 72 72 6f | 72 2e 29 0d 53 74 61 74 |rom erro|r.).Stat|
|00000560| 65 20 39 39 20 63 6f 6e | 74 61 69 6e 73 20 31 20 |e 99 con|tains 1 |
|00000570| 73 68 69 66 74 2f 72 65 | 64 75 63 65 20 63 6f 6e |shift/re|duce con|
|00000580| 66 6c 69 63 74 2e 20 20 | 28 54 77 6f 20 77 61 79 |flict. |(Two way|
|00000590| 73 20 74 6f 20 72 65 63 | 6f 76 65 72 20 66 72 6f |s to rec|over fro|
|000005a0| 6d 20 65 72 72 6f 72 2e | 29 0d 53 74 61 74 65 20 |m error.|).State |
|000005b0| 31 30 33 20 63 6f 6e 74 | 61 69 6e 73 20 31 20 73 |103 cont|ains 1 s|
|000005c0| 68 69 66 74 2f 72 65 64 | 75 63 65 20 63 6f 6e 66 |hift/red|uce conf|
|000005d0| 6c 69 63 74 2e 20 20 28 | 54 77 6f 20 77 61 79 73 |lict. (|Two ways|
|000005e0| 20 74 6f 20 72 65 63 6f | 76 65 72 20 66 72 6f 6d | to reco|ver from|
|000005f0| 20 65 72 72 6f 72 2e 29 | 0d 53 74 61 74 65 20 31 | error.)|.State 1|
|00000600| 31 39 20 63 6f 6e 74 61 | 69 6e 73 20 31 20 73 68 |19 conta|ins 1 sh|
|00000610| 69 66 74 2f 72 65 64 75 | 63 65 20 63 6f 6e 66 6c |ift/redu|ce confl|
|00000620| 69 63 74 2e 20 20 28 53 | 65 65 20 63 6f 6d 6d 65 |ict. (S|ee comme|
|00000630| 6e 74 20 61 74 20 63 6f | 6d 70 6f 6e 65 6e 74 5f |nt at co|mponent_|
|00000640| 64 65 63 6c 2e 29 0d 53 | 74 61 74 65 20 31 38 33 |decl.).S|tate 183|
|00000650| 20 63 6f 6e 74 61 69 6e | 73 20 31 20 73 68 69 66 | contain|s 1 shif|
|00000660| 74 2f 72 65 64 75 63 65 | 20 63 6f 6e 66 6c 69 63 |t/reduce| conflic|
|00000670| 74 2e 20 20 28 54 77 6f | 20 77 61 79 73 20 74 6f |t. (Two| ways to|
|00000680| 20 72 65 63 6f 76 65 72 | 20 66 72 6f 6d 20 65 72 | recover| from er|
|00000690| 72 6f 72 2e 29 0d 53 74 | 61 74 65 20 31 39 33 20 |ror.).St|ate 193 |
|000006a0| 63 6f 6e 74 61 69 6e 73 | 20 31 20 73 68 69 66 74 |contains| 1 shift|
|000006b0| 2f 72 65 64 75 63 65 20 | 63 6f 6e 66 6c 69 63 74 |/reduce |conflict|
|000006c0| 2e 20 20 28 54 77 6f 20 | 77 61 79 73 20 74 6f 20 |. (Two |ways to |
|000006d0| 72 65 63 6f 76 65 72 20 | 66 72 6f 6d 20 65 72 72 |recover |from err|
|000006e0| 6f 72 2e 29 0d 53 74 61 | 74 65 20 31 39 39 20 63 |or.).Sta|te 199 c|
|000006f0| 6f 6e 74 61 69 6e 73 20 | 31 20 73 68 69 66 74 2f |ontains |1 shift/|
|00000700| 72 65 64 75 63 65 20 63 | 6f 6e 66 6c 69 63 74 2e |reduce c|onflict.|
|00000710| 20 20 28 54 77 6f 20 77 | 61 79 73 20 74 6f 20 72 | (Two w|ays to r|
|00000720| 65 63 6f 76 65 72 20 66 | 72 6f 6d 20 65 72 72 6f |ecover f|rom erro|
|00000730| 72 2e 29 0d 2a 2f 0d 0d | 25 7b 0d 23 69 6e 63 6c |r.).*/..|%{.#incl|
|00000740| 75 64 65 20 22 63 6f 6e | 66 69 67 2e 68 22 0d 23 |ude "con|fig.h".#|
|00000750| 69 6e 63 6c 75 64 65 20 | 22 74 72 65 65 2e 68 22 |include |"tree.h"|
|00000760| 0d 23 69 6e 63 6c 75 64 | 65 20 22 69 6e 70 75 74 |.#includ|e "input|
|00000770| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 63 2d |.h".#inc|lude "c-|
|00000780| 70 61 72 73 65 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |parse.h"|.#includ|
|00000790| 65 20 22 63 2d 74 72 65 | 65 2e 68 22 0d 0d 23 69 |e "c-tre|e.h"..#i|
|000007a0| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>|
|000007b0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 65 72 72 6e 6f |.#includ|e <errno|
|000007c0| 2e 68 3e 0d 0d 23 69 66 | 6e 64 65 66 20 65 72 72 |.h>..#if|ndef err|
|000007d0| 6e 6f 0d 65 78 74 65 72 | 6e 20 69 6e 74 20 65 72 |no.exter|n int er|
|000007e0| 72 6e 6f 3b 0d 23 65 6e | 64 69 66 0d 0d 76 6f 69 |rno;.#en|dif..voi|
|000007f0| 64 20 79 79 65 72 72 6f | 72 20 28 29 3b 0d 0d 2f |d yyerro|r ();../|
|00000800| 2a 20 43 61 75 73 65 20 | 74 68 65 20 60 79 79 64 |* Cause |the `yyd|
|00000810| 65 62 75 67 27 20 76 61 | 72 69 61 62 6c 65 20 74 |ebug' va|riable t|
|00000820| 6f 20 62 65 20 64 65 66 | 69 6e 65 64 2e 20 20 2a |o be def|ined. *|
|00000830| 2f 0d 23 64 65 66 69 6e | 65 20 59 59 44 45 42 55 |/.#defin|e YYDEBU|
|00000840| 47 20 31 0d 25 7d 0d 0d | 25 73 74 61 72 74 20 70 |G 1.%}..|%start p|
|00000850| 72 6f 67 72 61 6d 0d 0d | 25 75 6e 69 6f 6e 20 7b |rogram..|%union {|
|00000860| 6c 6f 6e 67 20 69 74 79 | 70 65 3b 20 74 72 65 65 |long ity|pe; tree|
|00000870| 20 74 74 79 70 65 3b 20 | 65 6e 75 6d 20 74 72 65 | ttype; |enum tre|
|00000880| 65 5f 63 6f 64 65 20 63 | 6f 64 65 3b 20 7d 0d 0d |e_code c|ode; }..|
|00000890| 2f 2a 20 41 6c 6c 20 69 | 64 65 6e 74 69 66 69 65 |/* All i|dentifie|
|000008a0| 72 73 20 74 68 61 74 20 | 61 72 65 20 6e 6f 74 20 |rs that |are not |
|000008b0| 72 65 73 65 72 76 65 64 | 20 77 6f 72 64 73 0d 20 |reserved| words. |
|000008c0| 20 20 61 6e 64 20 61 72 | 65 20 6e 6f 74 20 64 65 | and ar|e not de|
|000008d0| 63 6c 61 72 65 64 20 74 | 79 70 65 64 65 66 73 20 |clared t|ypedefs |
|000008e0| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 62 |in the c|urrent b|
|000008f0| 6c 6f 63 6b 20 2a 2f 0d | 25 74 6f 6b 65 6e 20 49 |lock */.|%token I|
|00000900| 44 45 4e 54 49 46 49 45 | 52 0d 0d 2f 2a 20 41 6c |DENTIFIE|R../* Al|
|00000910| 6c 20 69 64 65 6e 74 69 | 66 69 65 72 73 20 74 68 |l identi|fiers th|
|00000920| 61 74 20 61 72 65 20 64 | 65 63 6c 61 72 65 64 20 |at are d|eclared |
|00000930| 74 79 70 65 64 65 66 73 | 20 69 6e 20 74 68 65 20 |typedefs| in the |
|00000940| 63 75 72 72 65 6e 74 20 | 62 6c 6f 63 6b 2e 0d 20 |current |block.. |
|00000950| 20 20 49 6e 20 73 6f 6d | 65 20 63 6f 6e 74 65 78 | In som|e contex|
|00000960| 74 73 2c 20 74 68 65 79 | 20 61 72 65 20 74 72 65 |ts, they| are tre|
|00000970| 61 74 65 64 20 6a 75 73 | 74 20 6c 69 6b 65 20 49 |ated jus|t like I|
|00000980| 44 45 4e 54 49 46 49 45 | 52 2c 0d 20 20 20 62 75 |DENTIFIE|R,. bu|
|00000990| 74 20 74 68 65 79 20 63 | 61 6e 20 61 6c 73 6f 20 |t they c|an also |
|000009a0| 73 65 72 76 65 20 61 73 | 20 74 79 70 65 73 70 65 |serve as| typespe|
|000009b0| 63 73 20 69 6e 20 64 65 | 63 6c 61 72 61 74 69 6f |cs in de|claratio|
|000009c0| 6e 73 2e 20 20 2a 2f 0d | 25 74 6f 6b 65 6e 20 54 |ns. */.|%token T|
|000009d0| 59 50 45 4e 41 4d 45 0d | 0d 2f 2a 20 52 65 73 65 |YPENAME.|./* Rese|
|000009e0| 72 76 65 64 20 77 6f 72 | 64 73 20 74 68 61 74 20 |rved wor|ds that |
|000009f0| 73 70 65 63 69 66 79 20 | 73 74 6f 72 61 67 65 20 |specify |storage |
|00000a00| 63 6c 61 73 73 2e 0d 20 | 20 20 79 79 6c 76 61 6c |class.. | yylval|
|00000a10| 20 63 6f 6e 74 61 69 6e | 73 20 61 6e 20 49 44 45 | contain|s an IDE|
|00000a20| 4e 54 49 46 49 45 52 5f | 4e 4f 44 45 20 77 68 69 |NTIFIER_|NODE whi|
|00000a30| 63 68 20 69 6e 64 69 63 | 61 74 65 73 20 77 68 69 |ch indic|ates whi|
|00000a40| 63 68 20 6f 6e 65 2e 20 | 20 2a 2f 0d 25 74 6f 6b |ch one. | */.%tok|
|00000a50| 65 6e 20 53 43 53 50 45 | 43 0d 0d 2f 2a 20 52 65 |en SCSPE|C../* Re|
|00000a60| 73 65 72 76 65 64 20 77 | 6f 72 64 73 20 74 68 61 |served w|ords tha|
|00000a70| 74 20 73 70 65 63 69 66 | 79 20 74 79 70 65 2e 0d |t specif|y type..|
|00000a80| 20 20 20 79 79 6c 76 61 | 6c 20 63 6f 6e 74 61 69 | yylva|l contai|
|00000a90| 6e 73 20 61 6e 20 49 44 | 45 4e 54 49 46 49 45 52 |ns an ID|ENTIFIER|
|00000aa0| 5f 4e 4f 44 45 20 77 68 | 69 63 68 20 69 6e 64 69 |_NODE wh|ich indi|
|00000ab0| 63 61 74 65 73 20 77 68 | 69 63 68 20 6f 6e 65 2e |cates wh|ich one.|
|00000ac0| 20 20 2a 2f 0d 25 74 6f | 6b 65 6e 20 54 59 50 45 | */.%to|ken TYPE|
|00000ad0| 53 50 45 43 0d 0d 2f 2a | 20 52 65 73 65 72 76 65 |SPEC../*| Reserve|
|00000ae0| 64 20 77 6f 72 64 73 20 | 74 68 61 74 20 71 75 61 |d words |that qua|
|00000af0| 6c 69 66 79 20 74 79 70 | 65 3a 20 22 63 6f 6e 73 |lify typ|e: "cons|
|00000b00| 74 22 20 6f 72 20 22 76 | 6f 6c 61 74 69 6c 65 22 |t" or "v|olatile"|
|00000b10| 2e 0d 20 20 20 79 79 6c | 76 61 6c 20 63 6f 6e 74 |.. yyl|val cont|
|00000b20| 61 69 6e 73 20 61 6e 20 | 49 44 45 4e 54 49 46 49 |ains an |IDENTIFI|
|00000b30| 45 52 5f 4e 4f 44 45 20 | 77 68 69 63 68 20 69 6e |ER_NODE |which in|
|00000b40| 64 69 63 61 74 65 73 20 | 77 68 69 63 68 20 6f 6e |dicates |which on|
|00000b50| 65 2e 20 20 2a 2f 0d 25 | 74 6f 6b 65 6e 20 54 59 |e. */.%|token TY|
|00000b60| 50 45 5f 51 55 41 4c 0d | 0d 2f 2a 20 43 68 61 72 |PE_QUAL.|./* Char|
|00000b70| 61 63 74 65 72 20 6f 72 | 20 6e 75 6d 65 72 69 63 |acter or| numeric|
|00000b80| 20 63 6f 6e 73 74 61 6e | 74 73 2e 0d 20 20 20 79 | constan|ts.. y|
|00000b90| 79 6c 76 61 6c 20 69 73 | 20 74 68 65 20 6e 6f 64 |ylval is| the nod|
|00000ba0| 65 20 66 6f 72 20 74 68 | 65 20 63 6f 6e 73 74 61 |e for th|e consta|
|00000bb0| 6e 74 2e 20 20 2a 2f 0d | 25 74 6f 6b 65 6e 20 43 |nt. */.|%token C|
|00000bc0| 4f 4e 53 54 41 4e 54 0d | 0d 2f 2a 20 53 74 72 69 |ONSTANT.|./* Stri|
|00000bd0| 6e 67 20 63 6f 6e 73 74 | 61 6e 74 73 20 69 6e 20 |ng const|ants in |
|00000be0| 72 61 77 20 66 6f 72 6d | 2e 0d 20 20 20 79 79 6c |raw form|.. yyl|
|00000bf0| 76 61 6c 20 69 73 20 61 | 20 53 54 52 49 4e 47 5f |val is a| STRING_|
|00000c00| 43 53 54 20 6e 6f 64 65 | 2e 20 20 2a 2f 0d 25 74 |CST node|. */.%t|
|00000c10| 6f 6b 65 6e 20 53 54 52 | 49 4e 47 0d 0d 2f 2a 20 |oken STR|ING../* |
|00000c20| 22 2e 2e 2e 22 2c 20 75 | 73 65 64 20 66 6f 72 20 |"...", u|sed for |
|00000c30| 66 75 6e 63 74 69 6f 6e | 73 20 77 69 74 68 20 76 |function|s with v|
|00000c40| 61 72 69 61 62 6c 65 20 | 61 72 67 6c 69 73 74 73 |ariable |arglists|
|00000c50| 2e 20 20 2a 2f 0d 25 74 | 6f 6b 65 6e 20 45 4c 4c |. */.%t|oken ELL|
|00000c60| 49 50 53 49 53 0d 0d 2f | 2a 20 74 68 65 20 72 65 |IPSIS../|* the re|
|00000c70| 73 65 72 76 65 64 20 77 | 6f 72 64 73 20 2a 2f 0d |served w|ords */.|
|00000c80| 25 74 6f 6b 65 6e 20 53 | 49 5a 45 4f 46 20 45 4e |%token S|IZEOF EN|
|00000c90| 55 4d 20 53 54 52 55 43 | 54 20 55 4e 49 4f 4e 20 |UM STRUC|T UNION |
|00000ca0| 49 46 20 45 4c 53 45 20 | 57 48 49 4c 45 20 44 4f |IF ELSE |WHILE DO|
|00000cb0| 20 46 4f 52 20 53 57 49 | 54 43 48 20 43 41 53 45 | FOR SWI|TCH CASE|
|00000cc0| 20 44 45 46 41 55 4c 54 | 0d 25 74 6f 6b 65 6e 20 | DEFAULT|.%token |
|00000cd0| 42 52 45 41 4b 20 43 4f | 4e 54 49 4e 55 45 20 52 |BREAK CO|NTINUE R|
|00000ce0| 45 54 55 52 4e 20 47 4f | 54 4f 20 41 53 4d 20 54 |ETURN GO|TO ASM T|
|00000cf0| 59 50 45 4f 46 20 41 4c | 49 47 4e 4f 46 0d 25 74 |YPEOF AL|IGNOF.%t|
|00000d00| 6f 6b 65 6e 20 41 54 54 | 52 49 42 55 54 45 0d 0d |oken ATT|RIBUTE..|
|00000d10| 2f 2a 20 41 64 64 20 70 | 72 65 63 65 64 65 6e 63 |/* Add p|recedenc|
|00000d20| 65 20 72 75 6c 65 73 20 | 74 6f 20 73 6f 6c 76 65 |e rules |to solve|
|00000d30| 20 64 61 6e 67 6c 69 6e | 67 20 65 6c 73 65 20 73 | danglin|g else s|
|00000d40| 2f 72 20 63 6f 6e 66 6c | 69 63 74 20 2a 2f 0d 25 |/r confl|ict */.%|
|00000d50| 6e 6f 6e 61 73 73 6f 63 | 20 49 46 0d 25 6e 6f 6e |nonassoc| IF.%non|
|00000d60| 61 73 73 6f 63 20 45 4c | 53 45 0d 0d 2f 2a 20 44 |assoc EL|SE../* D|
|00000d70| 65 66 69 6e 65 20 74 68 | 65 20 6f 70 65 72 61 74 |efine th|e operat|
|00000d80| 6f 72 20 74 6f 6b 65 6e | 73 20 61 6e 64 20 74 68 |or token|s and th|
|00000d90| 65 69 72 20 70 72 65 63 | 65 64 65 6e 63 65 73 2e |eir prec|edences.|
|00000da0| 0d 20 20 20 54 68 65 20 | 76 61 6c 75 65 20 69 73 |. The |value is|
|00000db0| 20 61 6e 20 69 6e 74 65 | 67 65 72 20 62 65 63 61 | an inte|ger beca|
|00000dc0| 75 73 65 2c 20 69 66 20 | 75 73 65 64 2c 20 69 74 |use, if |used, it|
|00000dd0| 20 69 73 20 74 68 65 20 | 74 72 65 65 20 63 6f 64 | is the |tree cod|
|00000de0| 65 0d 20 20 20 74 6f 20 | 75 73 65 20 69 6e 20 74 |e. to |use in t|
|00000df0| 68 65 20 65 78 70 72 65 | 73 73 69 6f 6e 20 6d 61 |he expre|ssion ma|
|00000e00| 64 65 20 66 72 6f 6d 20 | 74 68 65 20 6f 70 65 72 |de from |the oper|
|00000e10| 61 74 6f 72 2e 20 20 2a | 2f 0d 0d 25 72 69 67 68 |ator. *|/..%righ|
|00000e20| 74 20 3c 63 6f 64 65 3e | 20 41 53 53 49 47 4e 20 |t <code>| ASSIGN |
|00000e30| 27 3d 27 0d 25 72 69 67 | 68 74 20 3c 63 6f 64 65 |'='.%rig|ht <code|
|00000e40| 3e 20 27 3f 27 20 27 3a | 27 0d 25 6c 65 66 74 20 |> '?' ':|'.%left |
|00000e50| 3c 63 6f 64 65 3e 20 4f | 52 4f 52 0d 25 6c 65 66 |<code> O|ROR.%lef|
|00000e60| 74 20 3c 63 6f 64 65 3e | 20 41 4e 44 41 4e 44 0d |t <code>| ANDAND.|
|00000e70| 25 6c 65 66 74 20 3c 63 | 6f 64 65 3e 20 27 7c 27 |%left <c|ode> '|'|
|00000e80| 0d 25 6c 65 66 74 20 3c | 63 6f 64 65 3e 20 27 5e |.%left <|code> '^|
|00000e90| 27 0d 25 6c 65 66 74 20 | 3c 63 6f 64 65 3e 20 27 |'.%left |<code> '|
|00000ea0| 26 27 0d 25 6c 65 66 74 | 20 3c 63 6f 64 65 3e 20 |&'.%left| <code> |
|00000eb0| 45 51 43 4f 4d 50 41 52 | 45 0d 25 6c 65 66 74 20 |EQCOMPAR|E.%left |
|00000ec0| 3c 63 6f 64 65 3e 20 41 | 52 49 54 48 43 4f 4d 50 |<code> A|RITHCOMP|
|00000ed0| 41 52 45 0d 25 6c 65 66 | 74 20 3c 63 6f 64 65 3e |ARE.%lef|t <code>|
|00000ee0| 20 4c 53 48 49 46 54 20 | 52 53 48 49 46 54 0d 25 | LSHIFT |RSHIFT.%|
|00000ef0| 6c 65 66 74 20 3c 63 6f | 64 65 3e 20 27 2b 27 20 |left <co|de> '+' |
|00000f00| 27 2d 27 0d 25 6c 65 66 | 74 20 3c 63 6f 64 65 3e |'-'.%lef|t <code>|
|00000f10| 20 27 2a 27 20 27 2f 27 | 20 27 25 27 0d 25 72 69 | '*' '/'| '%'.%ri|
|00000f20| 67 68 74 20 3c 63 6f 64 | 65 3e 20 55 4e 41 52 59 |ght <cod|e> UNARY|
|00000f30| 20 50 4c 55 53 50 4c 55 | 53 20 4d 49 4e 55 53 4d | PLUSPLU|S MINUSM|
|00000f40| 49 4e 55 53 0d 25 6c 65 | 66 74 20 48 59 50 45 52 |INUS.%le|ft HYPER|
|00000f50| 55 4e 41 52 59 0d 25 6c | 65 66 74 20 3c 63 6f 64 |UNARY.%l|eft <cod|
|00000f60| 65 3e 20 50 4f 49 4e 54 | 53 41 54 20 27 2e 27 20 |e> POINT|SAT '.' |
|00000f70| 27 28 27 20 27 5b 27 0d | 0d 25 74 79 70 65 20 3c |'(' '['.|.%type <|
|00000f80| 63 6f 64 65 3e 20 75 6e | 6f 70 0d 0d 25 74 79 70 |code> un|op..%typ|
|00000f90| 65 20 3c 74 74 79 70 65 | 3e 20 69 64 65 6e 74 69 |e <ttype|> identi|
|00000fa0| 66 69 65 72 20 49 44 45 | 4e 54 49 46 49 45 52 20 |fier IDE|NTIFIER |
|00000fb0| 54 59 50 45 4e 41 4d 45 | 20 43 4f 4e 53 54 41 4e |TYPENAME| CONSTAN|
|00000fc0| 54 20 65 78 70 72 20 6e | 6f 6e 6e 75 6c 6c 5f 65 |T expr n|onnull_e|
|00000fd0| 78 70 72 6c 69 73 74 20 | 65 78 70 72 6c 69 73 74 |xprlist |exprlist|
|00000fe0| 0d 25 74 79 70 65 20 3c | 74 74 79 70 65 3e 20 65 |.%type <|ttype> e|
|00000ff0| 78 70 72 5f 6e 6f 5f 63 | 6f 6d 6d 61 73 20 63 61 |xpr_no_c|ommas ca|
|00001000| 73 74 5f 65 78 70 72 20 | 75 6e 61 72 79 5f 65 78 |st_expr |unary_ex|
|00001010| 70 72 20 70 72 69 6d 61 | 72 79 20 73 74 72 69 6e |pr prima|ry strin|
|00001020| 67 20 53 54 52 49 4e 47 | 0d 25 74 79 70 65 20 3c |g STRING|.%type <|
|00001030| 74 74 79 70 65 3e 20 74 | 79 70 65 64 5f 64 65 63 |ttype> t|yped_dec|
|00001040| 6c 73 70 65 63 73 20 72 | 65 73 65 72 76 65 64 5f |lspecs r|eserved_|
|00001050| 64 65 63 6c 73 70 65 63 | 73 0d 25 74 79 70 65 20 |declspec|s.%type |
|00001060| 3c 74 74 79 70 65 3e 20 | 74 79 70 65 64 5f 74 79 |<ttype> |typed_ty|
|00001070| 70 65 73 70 65 63 73 20 | 72 65 73 65 72 76 65 64 |pespecs |reserved|
|00001080| 5f 74 79 70 65 73 70 65 | 63 71 75 61 6c 73 0d 25 |_typespe|cquals.%|
|00001090| 74 79 70 65 20 3c 74 74 | 79 70 65 3e 20 64 65 63 |type <tt|ype> dec|
|000010a0| 6c 6d 6f 64 73 20 74 79 | 70 65 73 70 65 63 20 74 |lmods ty|pespec t|
|000010b0| 79 70 65 73 70 65 63 71 | 75 61 6c 5f 72 65 73 65 |ypespecq|ual_rese|
|000010c0| 72 76 65 64 0d 25 74 79 | 70 65 20 3c 74 74 79 70 |rved.%ty|pe <ttyp|
|000010d0| 65 3e 20 53 43 53 50 45 | 43 20 54 59 50 45 53 50 |e> SCSPE|C TYPESP|
|000010e0| 45 43 20 54 59 50 45 5f | 51 55 41 4c 20 6e 6f 6e |EC TYPE_|QUAL non|
|000010f0| 65 6d 70 74 79 5f 74 79 | 70 65 5f 71 75 61 6c 73 |empty_ty|pe_quals|
|00001100| 20 6d 61 79 62 65 5f 74 | 79 70 65 5f 71 75 61 6c | maybe_t|ype_qual|
|00001110| 0d 25 74 79 70 65 20 3c | 74 74 79 70 65 3e 20 69 |.%type <|ttype> i|
|00001120| 6e 69 74 64 65 63 6c 73 | 20 6e 6f 74 79 70 65 5f |nitdecls| notype_|
|00001130| 69 6e 69 74 64 65 63 6c | 73 20 69 6e 69 74 64 63 |initdecl|s initdc|
|00001140| 6c 20 6e 6f 74 79 70 65 | 5f 69 6e 69 74 64 63 6c |l notype|_initdcl|
|00001150| 0d 25 74 79 70 65 20 3c | 74 74 79 70 65 3e 20 69 |.%type <|ttype> i|
|00001160| 6e 69 74 20 69 6e 69 74 | 6c 69 73 74 20 6d 61 79 |nit init|list may|
|00001170| 62 65 61 73 6d 0d 25 74 | 79 70 65 20 3c 74 74 79 |beasm.%t|ype <tty|
|00001180| 70 65 3e 20 61 73 6d 5f | 6f 70 65 72 61 6e 64 73 |pe> asm_|operands|
|00001190| 20 6e 6f 6e 6e 75 6c 6c | 5f 61 73 6d 5f 6f 70 65 | nonnull|_asm_ope|
|000011a0| 72 61 6e 64 73 20 61 73 | 6d 5f 6f 70 65 72 61 6e |rands as|m_operan|
|000011b0| 64 20 61 73 6d 5f 63 6c | 6f 62 62 65 72 73 0d 25 |d asm_cl|obbers.%|
|000011c0| 74 79 70 65 20 3c 74 74 | 79 70 65 3e 20 6d 61 79 |type <tt|ype> may|
|000011d0| 62 65 5f 61 74 74 72 69 | 62 75 74 65 20 61 74 74 |be_attri|bute att|
|000011e0| 72 69 62 75 74 65 5f 6c | 69 73 74 20 61 74 74 72 |ribute_l|ist attr|
|000011f0| 69 62 0d 0d 25 74 79 70 | 65 20 3c 74 74 79 70 65 |ib..%typ|e <ttype|
|00001200| 3e 20 63 6f 6d 70 73 74 | 6d 74 0d 0d 25 74 79 70 |> compst|mt..%typ|
|00001210| 65 20 3c 74 74 79 70 65 | 3e 20 64 65 63 6c 61 72 |e <ttype|> declar|
|00001220| 61 74 6f 72 0d 25 74 79 | 70 65 20 3c 74 74 79 70 |ator.%ty|pe <ttyp|
|00001230| 65 3e 20 6e 6f 74 79 70 | 65 5f 64 65 63 6c 61 72 |e> notyp|e_declar|
|00001240| 61 74 6f 72 20 61 66 74 | 65 72 5f 74 79 70 65 5f |ator aft|er_type_|
|00001250| 64 65 63 6c 61 72 61 74 | 6f 72 0d 25 74 79 70 65 |declarat|or.%type|
|00001260| 20 3c 74 74 79 70 65 3e | 20 70 61 72 6d 5f 64 65 | <ttype>| parm_de|
|00001270| 63 6c 61 72 61 74 6f 72 | 0d 0d 25 74 79 70 65 20 |clarator|..%type |
|00001280| 3c 74 74 79 70 65 3e 20 | 73 74 72 75 63 74 73 70 |<ttype> |structsp|
|00001290| 20 63 6f 6d 70 6f 6e 65 | 6e 74 5f 64 65 63 6c 5f | compone|nt_decl_|
|000012a0| 6c 69 73 74 20 63 6f 6d | 70 6f 6e 65 6e 74 5f 64 |list com|ponent_d|
|000012b0| 65 63 6c 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 20 63 |ecl comp|onents c|
|000012c0| 6f 6d 70 6f 6e 65 6e 74 | 5f 64 65 63 6c 61 72 61 |omponent|_declara|
|000012d0| 74 6f 72 0d 25 74 79 70 | 65 20 3c 74 74 79 70 65 |tor.%typ|e <ttype|
|000012e0| 3e 20 65 6e 75 6d 6c 69 | 73 74 20 65 6e 75 6d 65 |> enumli|st enume|
|000012f0| 72 61 74 6f 72 0d 25 74 | 79 70 65 20 3c 74 74 79 |rator.%t|ype <tty|
|00001300| 70 65 3e 20 74 79 70 65 | 6e 61 6d 65 20 61 62 73 |pe> type|name abs|
|00001310| 64 63 6c 20 61 62 73 64 | 63 6c 31 20 74 79 70 65 |dcl absd|cl1 type|
|00001320| 5f 71 75 61 6c 73 0d 25 | 74 79 70 65 20 3c 74 74 |_quals.%|type <tt|
|00001330| 79 70 65 3e 20 78 65 78 | 70 72 20 70 61 72 6d 73 |ype> xex|pr parms|
|00001340| 20 70 61 72 6d 20 69 64 | 65 6e 74 69 66 69 65 72 | parm id|entifier|
|00001350| 73 0d 0d 25 74 79 70 65 | 20 3c 74 74 79 70 65 3e |s..%type| <ttype>|
|00001360| 20 70 61 72 6d 6c 69 73 | 74 20 70 61 72 6d 6c 69 | parmlis|t parmli|
|00001370| 73 74 5f 31 20 70 61 72 | 6d 6c 69 73 74 5f 32 0d |st_1 par|mlist_2.|
|00001380| 25 74 79 70 65 20 3c 74 | 74 79 70 65 3e 20 70 61 |%type <t|type> pa|
|00001390| 72 6d 6c 69 73 74 5f 6f | 72 5f 69 64 65 6e 74 69 |rmlist_o|r_identi|
|000013a0| 66 69 65 72 73 20 70 61 | 72 6d 6c 69 73 74 5f 6f |fiers pa|rmlist_o|
|000013b0| 72 5f 69 64 65 6e 74 69 | 66 69 65 72 73 5f 31 0d |r_identi|fiers_1.|
|000013c0| 0d 25 74 79 70 65 20 3c | 69 74 79 70 65 3e 20 73 |.%type <|itype> s|
|000013d0| 65 74 73 70 65 63 73 0d | 0c 0d 25 7b 0d 2f 2a 20 |etspecs.|..%{./* |
|000013e0| 74 68 65 20 64 65 63 6c | 61 72 61 74 69 6f 6e 20 |the decl|aration |
|000013f0| 66 6f 75 6e 64 20 66 6f | 72 20 74 68 65 20 6c 61 |found fo|r the la|
|00001400| 73 74 20 49 44 45 4e 54 | 49 46 49 45 52 20 74 6f |st IDENT|IFIER to|
|00001410| 6b 65 6e 20 72 65 61 64 | 20 69 6e 2e 0d 20 20 20 |ken read| in.. |
|00001420| 79 79 6c 65 78 20 6d 75 | 73 74 20 6c 6f 6f 6b 20 |yylex mu|st look |
|00001430| 74 68 69 73 20 75 70 20 | 74 6f 20 64 65 74 65 63 |this up |to detec|
|00001440| 74 20 74 79 70 65 64 65 | 66 73 2c 20 77 68 69 63 |t typede|fs, whic|
|00001450| 68 20 67 65 74 20 74 6f | 6b 65 6e 20 74 79 70 65 |h get to|ken type|
|00001460| 20 54 59 50 45 4e 41 4d | 45 2c 0d 20 20 20 73 6f | TYPENAM|E,. so|
|00001470| 20 69 74 20 69 73 20 6c | 65 66 74 20 61 72 6f 75 | it is l|eft arou|
|00001480| 6e 64 20 69 6e 20 63 61 | 73 65 20 74 68 65 20 69 |nd in ca|se the i|
|00001490| 64 65 6e 74 69 66 69 65 | 72 20 69 73 20 6e 6f 74 |dentifie|r is not|
|000014a0| 20 61 20 74 79 70 65 64 | 65 66 20 62 75 74 20 69 | a typed|ef but i|
|000014b0| 73 0d 20 20 20 75 73 65 | 64 20 69 6e 20 61 20 63 |s. use|d in a c|
|000014c0| 6f 6e 74 65 78 74 20 77 | 68 69 63 68 20 6d 61 6b |ontext w|hich mak|
|000014d0| 65 73 20 69 74 20 61 20 | 72 65 66 65 72 65 6e 63 |es it a |referenc|
|000014e0| 65 20 74 6f 20 61 20 76 | 61 72 69 61 62 6c 65 2e |e to a v|ariable.|
|000014f0| 20 20 2a 2f 0d 73 74 61 | 74 69 63 20 74 72 65 65 | */.sta|tic tree|
|00001500| 20 6c 61 73 74 69 64 64 | 65 63 6c 3b 0d 0d 73 74 | lastidd|ecl;..st|
|00001510| 61 74 69 63 20 74 72 65 | 65 20 6d 61 6b 65 5f 70 |atic tre|e make_p|
|00001520| 6f 69 6e 74 65 72 5f 64 | 65 63 6c 61 72 61 74 6f |ointer_d|eclarato|
|00001530| 72 20 28 29 3b 0d 73 74 | 61 74 69 63 20 74 72 65 |r ();.st|atic tre|
|00001540| 65 20 63 6f 6d 62 69 6e | 65 5f 73 74 72 69 6e 67 |e combin|e_string|
|00001550| 73 20 28 29 3b 0d 73 74 | 61 74 69 63 20 76 6f 69 |s ();.st|atic voi|
|00001560| 64 20 72 65 69 6e 69 74 | 5f 70 61 72 73 65 5f 66 |d reinit|_parse_f|
|00001570| 6f 72 5f 66 75 6e 63 74 | 69 6f 6e 20 28 29 3b 0d |or_funct|ion ();.|
|00001580| 0d 2f 2a 20 4c 69 73 74 | 20 6f 66 20 74 79 70 65 |./* List| of type|
|00001590| 73 20 61 6e 64 20 73 74 | 72 75 63 74 75 72 65 20 |s and st|ructure |
|000015a0| 63 6c 61 73 73 65 73 20 | 6f 66 20 74 68 65 20 63 |classes |of the c|
|000015b0| 75 72 72 65 6e 74 20 64 | 65 63 6c 61 72 61 74 69 |urrent d|eclarati|
|000015c0| 6f 6e 2e 20 20 2a 2f 0d | 74 72 65 65 20 63 75 72 |on. */.|tree cur|
|000015d0| 72 65 6e 74 5f 64 65 63 | 6c 73 70 65 63 73 3b 0d |rent_dec|lspecs;.|
|000015e0| 0d 2f 2a 20 53 74 61 63 | 6b 20 6f 66 20 73 61 76 |./* Stac|k of sav|
|000015f0| 65 64 20 76 61 6c 75 65 | 73 20 6f 66 20 63 75 72 |ed value|s of cur|
|00001600| 72 65 6e 74 5f 64 65 63 | 6c 73 70 65 63 73 2e 20 |rent_dec|lspecs. |
|00001610| 20 2a 2f 0d 74 72 65 65 | 20 64 65 63 6c 73 70 65 | */.tree| declspe|
|00001620| 63 5f 73 74 61 63 6b 3b | 0d 0d 69 6e 74 20 75 6e |c_stack;|..int un|
|00001630| 64 65 63 6c 61 72 65 64 | 5f 76 61 72 69 61 62 6c |declared|_variabl|
|00001640| 65 5f 6e 6f 74 69 63 65 | 3b 09 2f 2a 20 31 20 69 |e_notice|;./* 1 i|
|00001650| 66 20 77 65 20 65 78 70 | 6c 61 69 6e 65 64 20 75 |f we exp|lained u|
|00001660| 6e 64 65 63 6c 61 72 65 | 64 20 76 61 72 20 65 72 |ndeclare|d var er|
|00001670| 72 6f 72 73 2e 20 20 2a | 2f 0d 0d 73 74 61 74 69 |rors. *|/..stati|
|00001680| 63 20 69 6e 74 20 79 79 | 6c 65 78 20 28 29 3b 0d |c int yy|lex ();.|
|00001690| 25 7d 0d 0c 0d 25 25 0d | 70 72 6f 67 72 61 6d 3a |%}...%%.|program:|
|000016a0| 20 2f 2a 20 65 6d 70 74 | 79 20 2a 2f 0d 09 7c 20 | /* empt|y */..| |
|000016b0| 65 78 74 64 65 66 73 0d | 09 3b 0d 0d 2f 2a 20 74 |extdefs.|.;../* t|
|000016c0| 68 65 20 72 65 61 73 6f | 6e 20 66 6f 72 20 74 68 |he reaso|n for th|
|000016d0| 65 20 73 74 72 61 6e 67 | 65 20 61 63 74 69 6f 6e |e strang|e action|
|000016e0| 73 20 69 6e 20 74 68 69 | 73 20 72 75 6c 65 0d 20 |s in thi|s rule. |
|000016f0| 69 73 20 73 6f 20 74 68 | 61 74 20 6e 6f 74 79 70 |is so th|at notyp|
|00001700| 65 5f 69 6e 69 74 64 65 | 63 6c 73 20 77 68 65 6e |e_initde|cls when|
|00001710| 20 72 65 61 63 68 65 64 | 20 76 69 61 20 64 61 74 | reached| via dat|
|00001720| 61 64 65 66 0d 20 63 61 | 6e 20 66 69 6e 64 20 61 |adef. ca|n find a|
|00001730| 20 76 61 6c 69 64 20 6c | 69 73 74 20 6f 66 20 74 | valid l|ist of t|
|00001740| 79 70 65 20 61 6e 64 20 | 73 63 20 73 70 65 63 73 |ype and |sc specs|
|00001750| 20 69 6e 20 24 30 2e 20 | 2a 2f 0d 0d 65 78 74 64 | in $0. |*/..extd|
|00001760| 65 66 73 3a 0d 09 7b 24 | 3c 74 74 79 70 65 3e 24 |efs:..{$|<ttype>$|
|00001770| 20 3d 20 4e 55 4c 4c 5f | 54 52 45 45 3b 20 7d 20 | = NULL_|TREE; } |
|00001780| 65 78 74 64 65 66 0d 09 | 7c 20 65 78 74 64 65 66 |extdef..|| extdef|
|00001790| 73 20 7b 24 3c 74 74 79 | 70 65 3e 24 20 3d 20 4e |s {$<tty|pe>$ = N|
|000017a0| 55 4c 4c 5f 54 52 45 45 | 3b 20 7d 20 65 78 74 64 |ULL_TREE|; } extd|
|000017b0| 65 66 0d 09 3b 0d 0d 65 | 78 74 64 65 66 3a 0d 09 |ef..;..e|xtdef:..|
|000017c0| 66 6e 64 65 66 0d 09 7c | 20 64 61 74 61 64 65 66 |fndef..|| datadef|
|000017d0| 0d 09 7c 20 41 53 4d 20 | 27 28 27 20 73 74 72 69 |..| ASM |'(' stri|
|000017e0| 6e 67 20 27 29 27 20 27 | 3b 27 0d 09 09 7b 20 69 |ng ')' '|;'...{ i|
|000017f0| 66 20 28 70 65 64 61 6e | 74 69 63 29 0d 09 09 20 |f (pedan|tic)... |
|00001800| 20 20 20 77 61 72 6e 69 | 6e 67 20 28 22 41 4e 53 | warni|ng ("ANS|
|00001810| 49 20 43 20 66 6f 72 62 | 69 64 73 20 75 73 65 20 |I C forb|ids use |
|00001820| 6f 66 20 60 61 73 6d 27 | 20 6b 65 79 77 6f 72 64 |of `asm'| keyword|
|00001830| 22 29 3b 0d 09 09 20 20 | 69 66 20 28 54 52 45 45 |");... |if (TREE|
|00001840| 5f 43 48 41 49 4e 20 28 | 24 33 29 29 20 24 33 20 |_CHAIN (|$3)) $3 |
|00001850| 3d 20 63 6f 6d 62 69 6e | 65 5f 73 74 72 69 6e 67 |= combin|e_string|
|00001860| 73 20 28 24 33 29 3b 0d | 09 09 20 20 61 73 73 65 |s ($3);.|.. asse|
|00001870| 6d 62 6c 65 5f 61 73 6d | 20 28 24 33 29 3b 20 7d |mble_asm| ($3); }|
|00001880| 0d 09 3b 0d 0d 64 61 74 | 61 64 65 66 3a 0d 09 20 |..;..dat|adef:.. |
|00001890| 20 73 65 74 73 70 65 63 | 73 20 6e 6f 74 79 70 65 | setspec|s notype|
|000018a0| 5f 69 6e 69 74 64 65 63 | 6c 73 20 27 3b 27 0d 09 |_initdec|ls ';'..|
|000018b0| 09 7b 20 69 66 20 28 70 | 65 64 61 6e 74 69 63 29 |.{ if (p|edantic)|
|000018c0| 0d 09 09 20 20 20 20 65 | 72 72 6f 72 20 28 22 41 |... e|rror ("A|
|000018d0| 4e 53 49 20 43 20 66 6f | 72 62 69 64 73 20 64 61 |NSI C fo|rbids da|
|000018e0| 74 61 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6c 61 |ta defin|ition la|
|000018f0| 63 6b 69 6e 67 20 74 79 | 70 65 20 6f 72 20 73 74 |cking ty|pe or st|
|00001900| 6f 72 61 67 65 20 63 6c | 61 73 73 22 29 3b 0d 09 |orage cl|ass");..|
|00001910| 09 20 20 65 6c 73 65 20 | 69 66 20 28 21 66 6c 61 |. else |if (!fla|
|00001920| 67 5f 74 72 61 64 69 74 | 69 6f 6e 61 6c 29 0d 09 |g_tradit|ional)..|
|00001930| 09 20 20 20 20 77 61 72 | 6e 69 6e 67 20 28 22 64 |. war|ning ("d|
|00001940| 61 74 61 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6c |ata defi|nition l|
|00001950| 61 63 6b 73 20 74 79 70 | 65 20 6f 72 20 73 74 6f |acks typ|e or sto|
|00001960| 72 61 67 65 20 63 6c 61 | 73 73 22 29 3b 20 7d 0d |rage cla|ss"); }.|
|00001970| 20 20 20 20 20 20 20 20 | 7c 20 64 65 63 6c 6d 6f | || declmo|
|00001980| 64 73 20 73 65 74 73 70 | 65 63 73 20 6e 6f 74 79 |ds setsp|ecs noty|
|00001990| 70 65 5f 69 6e 69 74 64 | 65 63 6c 73 20 27 3b 27 |pe_initd|ecls ';'|
|000019a0| 0d 09 20 20 7b 7d 0d 09 | 7c 20 74 79 70 65 64 5f |.. {}..|| typed_|
|000019b0| 64 65 63 6c 73 70 65 63 | 73 20 73 65 74 73 70 65 |declspec|s setspe|
|000019c0| 63 73 20 69 6e 69 74 64 | 65 63 6c 73 20 27 3b 27 |cs initd|ecls ';'|
|000019d0| 0d 09 20 20 7b 7d 0d 20 | 20 20 20 20 20 20 20 7c |.. {}. | ||
|000019e0| 20 64 65 63 6c 6d 6f 64 | 73 20 27 3b 27 0d 09 20 | declmod|s ';'.. |
|000019f0| 20 7b 20 65 72 72 6f 72 | 20 28 22 65 6d 70 74 79 | { error| ("empty|
|00001a00| 20 64 65 63 6c 61 72 61 | 74 69 6f 6e 22 29 3b 20 | declara|tion"); |
|00001a10| 7d 0d 09 7c 20 74 79 70 | 65 64 5f 64 65 63 6c 73 |}..| typ|ed_decls|
|00001a20| 70 65 63 73 20 27 3b 27 | 0d 09 20 20 7b 20 73 68 |pecs ';'|.. { sh|
|00001a30| 61 64 6f 77 5f 74 61 67 | 20 28 24 31 29 3b 20 7d |adow_tag| ($1); }|
|00001a40| 0d 09 7c 20 65 72 72 6f | 72 20 27 3b 27 0d 09 7c |..| erro|r ';'..||
|00001a50| 20 65 72 72 6f 72 20 27 | 7d 27 0d 09 7c 20 27 3b | error '|}'..| ';|
|00001a60| 27 0d 09 09 7b 20 69 66 | 20 28 70 65 64 61 6e 74 |'...{ if| (pedant|
|00001a70| 69 63 29 0d 09 09 20 20 | 20 20 77 61 72 6e 69 6e |ic)... | warnin|
|00001a80| 67 20 28 22 41 4e 53 49 | 20 43 20 64 6f 65 73 20 |g ("ANSI| C does |
|00001a90| 6e 6f 74 20 61 6c 6c 6f | 77 20 65 78 74 72 61 20 |not allo|w extra |
|00001aa0| 60 3b 27 20 6f 75 74 73 | 69 64 65 20 6f 66 20 61 |`;' outs|ide of a|
|00001ab0| 20 66 75 6e 63 74 69 6f | 6e 22 29 3b 20 7d 0d 09 | functio|n"); }..|
|00001ac0| 3b 0d 0d 66 6e 64 65 66 | 3a 0d 09 20 20 74 79 70 |;..fndef|:.. typ|
|00001ad0| 65 64 5f 64 65 63 6c 73 | 70 65 63 73 20 73 65 74 |ed_decls|pecs set|
|00001ae0| 73 70 65 63 73 20 64 65 | 63 6c 61 72 61 74 6f 72 |specs de|clarator|
|00001af0| 0d 09 09 7b 20 69 66 20 | 28 21 20 73 74 61 72 74 |...{ if |(! start|
|00001b00| 5f 66 75 6e 63 74 69 6f | 6e 20 28 24 31 2c 20 24 |_functio|n ($1, $|
|00001b10| 33 29 29 0d 09 09 20 20 | 20 20 59 59 45 52 52 4f |3))... | YYERRO|
|00001b20| 52 3b 0d 09 09 20 20 72 | 65 69 6e 69 74 5f 70 61 |R;... r|einit_pa|
|00001b30| 72 73 65 5f 66 6f 72 5f | 66 75 6e 63 74 69 6f 6e |rse_for_|function|
|00001b40| 20 28 29 3b 20 7d 0d 09 | 20 20 78 64 65 63 6c 73 | (); }..| xdecls|
|00001b50| 0d 09 09 7b 20 73 74 6f | 72 65 5f 70 61 72 6d 5f |...{ sto|re_parm_|
|00001b60| 64 65 63 6c 73 20 28 29 | 3b 20 7d 0d 09 20 20 63 |decls ()|; }.. c|
|00001b70| 6f 6d 70 73 74 6d 74 5f | 6f 72 5f 65 72 72 6f 72 |ompstmt_|or_error|
|00001b80| 0d 09 09 7b 20 66 69 6e | 69 73 68 5f 66 75 6e 63 |...{ fin|ish_func|
|00001b90| 74 69 6f 6e 20 28 6c 69 | 6e 65 6e 6f 29 3b 20 7d |tion (li|neno); }|
|00001ba0| 0d 09 7c 20 74 79 70 65 | 64 5f 64 65 63 6c 73 70 |..| type|d_declsp|
|00001bb0| 65 63 73 20 73 65 74 73 | 70 65 63 73 20 64 65 63 |ecs sets|pecs dec|
|00001bc0| 6c 61 72 61 74 6f 72 20 | 65 72 72 6f 72 0d 09 09 |larator |error...|
|00001bd0| 7b 20 7d 0d 09 7c 20 64 | 65 63 6c 6d 6f 64 73 20 |{ }..| d|eclmods |
|00001be0| 73 65 74 73 70 65 63 73 | 20 6e 6f 74 79 70 65 5f |setspecs| notype_|
|00001bf0| 64 65 63 6c 61 72 61 74 | 6f 72 0d 09 09 7b 20 69 |declarat|or...{ i|
|00001c00| 66 20 28 21 20 73 74 61 | 72 74 5f 66 75 6e 63 74 |f (! sta|rt_funct|
|00001c10| 69 6f 6e 20 28 24 31 2c | 20 24 33 29 29 0d 09 09 |ion ($1,| $3))...|
|00001c20| 20 20 20 20 59 59 45 52 | 52 4f 52 3b 0d 09 09 20 | YYER|ROR;... |
|00001c30| 20 72 65 69 6e 69 74 5f | 70 61 72 73 65 5f 66 6f | reinit_|parse_fo|
|00001c40| 72 5f 66 75 6e 63 74 69 | 6f 6e 20 28 29 3b 20 7d |r_functi|on (); }|
|00001c50| 0d 09 20 20 78 64 65 63 | 6c 73 0d 09 09 7b 20 73 |.. xdec|ls...{ s|
|00001c60| 74 6f 72 65 5f 70 61 72 | 6d 5f 64 65 63 6c 73 20 |tore_par|m_decls |
|00001c70| 28 29 3b 20 7d 0d 09 20 | 20 63 6f 6d 70 73 74 6d |(); }.. | compstm|
|00001c80| 74 5f 6f 72 5f 65 72 72 | 6f 72 0d 09 09 7b 20 66 |t_or_err|or...{ f|
|00001c90| 69 6e 69 73 68 5f 66 75 | 6e 63 74 69 6f 6e 20 28 |inish_fu|nction (|
|00001ca0| 6c 69 6e 65 6e 6f 29 3b | 20 7d 0d 09 7c 20 64 65 |lineno);| }..| de|
|00001cb0| 63 6c 6d 6f 64 73 20 73 | 65 74 73 70 65 63 73 20 |clmods s|etspecs |
|00001cc0| 6e 6f 74 79 70 65 5f 64 | 65 63 6c 61 72 61 74 6f |notype_d|eclarato|
|00001cd0| 72 20 65 72 72 6f 72 0d | 09 09 7b 20 7d 0d 09 7c |r error.|..{ }..||
|00001ce0| 20 73 65 74 73 70 65 63 | 73 20 6e 6f 74 79 70 65 | setspec|s notype|
|00001cf0| 5f 64 65 63 6c 61 72 61 | 74 6f 72 0d 09 09 7b 20 |_declara|tor...{ |
|00001d00| 69 66 20 28 21 20 73 74 | 61 72 74 5f 66 75 6e 63 |if (! st|art_func|
|00001d10| 74 69 6f 6e 20 28 30 2c | 20 24 32 29 29 0d 09 09 |tion (0,| $2))...|
|00001d20| 20 20 20 20 59 59 45 52 | 52 4f 52 3b 0d 09 09 20 | YYER|ROR;... |
|00001d30| 20 72 65 69 6e 69 74 5f | 70 61 72 73 65 5f 66 6f | reinit_|parse_fo|
|00001d40| 72 5f 66 75 6e 63 74 69 | 6f 6e 20 28 29 3b 20 7d |r_functi|on (); }|
|00001d50| 0d 09 20 20 78 64 65 63 | 6c 73 0d 09 09 7b 20 73 |.. xdec|ls...{ s|
|00001d60| 74 6f 72 65 5f 70 61 72 | 6d 5f 64 65 63 6c 73 20 |tore_par|m_decls |
|00001d70| 28 29 3b 20 7d 0d 09 20 | 20 63 6f 6d 70 73 74 6d |(); }.. | compstm|
|00001d80| 74 5f 6f 72 5f 65 72 72 | 6f 72 0d 09 09 7b 20 66 |t_or_err|or...{ f|
|00001d90| 69 6e 69 73 68 5f 66 75 | 6e 63 74 69 6f 6e 20 28 |inish_fu|nction (|
|00001da0| 6c 69 6e 65 6e 6f 29 3b | 20 7d 0d 09 7c 20 73 65 |lineno);| }..| se|
|00001db0| 74 73 70 65 63 73 20 6e | 6f 74 79 70 65 5f 64 65 |tspecs n|otype_de|
|00001dc0| 63 6c 61 72 61 74 6f 72 | 20 65 72 72 6f 72 0d 09 |clarator| error..|
|00001dd0| 09 7b 20 7d 0d 09 3b 0d | 0d 69 64 65 6e 74 69 66 |.{ }..;.|.identif|
|00001de0| 69 65 72 3a 0d 09 49 44 | 45 4e 54 49 46 49 45 52 |ier:..ID|ENTIFIER|
|00001df0| 0d 09 7c 20 54 59 50 45 | 4e 41 4d 45 0d 09 3b 0d |..| TYPE|NAME..;.|
|00001e00| 0d 75 6e 6f 70 3a 20 20 | 20 20 20 27 26 27 0d 09 |.unop: | '&'..|
|00001e10| 09 7b 20 24 24 20 3d 20 | 41 44 44 52 5f 45 58 50 |.{ $$ = |ADDR_EXP|
|00001e20| 52 3b 20 7d 0d 09 7c 20 | 27 2d 27 0d 09 09 7b 20 |R; }..| |'-'...{ |
|00001e30| 24 24 20 3d 20 4e 45 47 | 41 54 45 5f 45 58 50 52 |$$ = NEG|ATE_EXPR|
|00001e40| 3b 20 7d 0d 09 7c 20 27 | 2b 27 0d 09 09 7b 20 24 |; }..| '|+'...{ $|
|00001e50| 24 20 3d 20 43 4f 4e 56 | 45 52 54 5f 45 58 50 52 |$ = CONV|ERT_EXPR|
|00001e60| 3b 20 7d 0d 09 7c 20 50 | 4c 55 53 50 4c 55 53 0d |; }..| P|LUSPLUS.|
|00001e70| 09 09 7b 20 24 24 20 3d | 20 50 52 45 49 4e 43 52 |..{ $$ =| PREINCR|
|00001e80| 45 4d 45 4e 54 5f 45 58 | 50 52 3b 20 7d 0d 09 7c |EMENT_EX|PR; }..||
|00001e90| 20 4d 49 4e 55 53 4d 49 | 4e 55 53 0d 09 09 7b 20 | MINUSMI|NUS...{ |
|00001ea0| 24 24 20 3d 20 50 52 45 | 44 45 43 52 45 4d 45 4e |$$ = PRE|DECREMEN|
|00001eb0| 54 5f 45 58 50 52 3b 20 | 7d 0d 09 7c 20 27 7e 27 |T_EXPR; |}..| '~'|
|00001ec0| 0d 09 09 7b 20 24 24 20 | 3d 20 42 49 54 5f 4e 4f |...{ $$ |= BIT_NO|
|00001ed0| 54 5f 45 58 50 52 3b 20 | 7d 0d 09 7c 20 27 21 27 |T_EXPR; |}..| '!'|
|00001ee0| 0d 09 09 7b 20 24 24 20 | 3d 20 54 52 55 54 48 5f |...{ $$ |= TRUTH_|
|00001ef0| 4e 4f 54 5f 45 58 50 52 | 3b 20 7d 0d 09 3b 0d 0d |NOT_EXPR|; }..;..|
|00001f00| 65 78 70 72 3a 09 6e 6f | 6e 6e 75 6c 6c 5f 65 78 |expr:.no|nnull_ex|
|00001f10| 70 72 6c 69 73 74 0d 09 | 09 7b 20 24 24 20 3d 20 |prlist..|.{ $$ = |
|00001f20| 62 75 69 6c 64 5f 63 6f | 6d 70 6f 75 6e 64 5f 65 |build_co|mpound_e|
|00001f30| 78 70 72 20 28 24 31 29 | 3b 20 7d 0d 09 3b 0d 0d |xpr ($1)|; }..;..|
|00001f40| 65 78 70 72 6c 69 73 74 | 3a 0d 09 20 20 2f 2a 20 |exprlist|:.. /* |
|00001f50| 65 6d 70 74 79 20 2a 2f | 0d 09 09 7b 20 24 24 20 |empty */|...{ $$ |
|00001f60| 3d 20 4e 55 4c 4c 5f 54 | 52 45 45 3b 20 7d 0d 09 |= NULL_T|REE; }..|
|00001f70| 7c 20 6e 6f 6e 6e 75 6c | 6c 5f 65 78 70 72 6c 69 || nonnul|l_exprli|
|00001f80| 73 74 0d 09 3b 0d 0d 6e | 6f 6e 6e 75 6c 6c 5f 65 |st..;..n|onnull_e|
|00001f90| 78 70 72 6c 69 73 74 3a | 0d 09 65 78 70 72 5f 6e |xprlist:|..expr_n|
|00001fa0| 6f 5f 63 6f 6d 6d 61 73 | 0d 09 09 7b 20 24 24 20 |o_commas|...{ $$ |
|00001fb0| 3d 20 62 75 69 6c 64 5f | 74 72 65 65 5f 6c 69 73 |= build_|tree_lis|
|00001fc0| 74 20 28 4e 55 4c 4c 5f | 54 52 45 45 2c 20 24 31 |t (NULL_|TREE, $1|
|00001fd0| 29 3b 20 7d 0d 09 7c 20 | 6e 6f 6e 6e 75 6c 6c 5f |); }..| |nonnull_|
|00001fe0| 65 78 70 72 6c 69 73 74 | 20 27 2c 27 20 65 78 70 |exprlist| ',' exp|
|00001ff0| 72 5f 6e 6f 5f 63 6f 6d | 6d 61 73 0d 09 09 7b 20 |r_no_com|mas...{ |
|00002000| 63 68 61 69 6e 6f 6e 20 | 28 24 31 2c 20 62 75 69 |chainon |($1, bui|
|00002010| 6c 64 5f 74 72 65 65 5f | 6c 69 73 74 20 28 4e 55 |ld_tree_|list (NU|
|00002020| 4c 4c 5f 54 52 45 45 2c | 20 24 33 29 29 3b 20 7d |LL_TREE,| $3)); }|
|00002030| 0d 09 3b 0d 0d 75 6e 61 | 72 79 5f 65 78 70 72 3a |..;..una|ry_expr:|
|00002040| 0d 09 70 72 69 6d 61 72 | 79 0d 09 7c 20 27 2a 27 |..primar|y..| '*'|
|00002050| 20 63 61 73 74 5f 65 78 | 70 72 20 20 20 25 70 72 | cast_ex|pr %pr|
|00002060| 65 63 20 55 4e 41 52 59 | 0d 09 09 7b 20 24 24 20 |ec UNARY|...{ $$ |
|00002070| 3d 20 62 75 69 6c 64 5f | 69 6e 64 69 72 65 63 74 |= build_|indirect|
|00002080| 5f 72 65 66 20 28 24 32 | 2c 20 22 75 6e 61 72 79 |_ref ($2|, "unary|
|00002090| 20 2a 22 29 3b 20 7d 0d | 09 7c 20 75 6e 6f 70 20 | *"); }.|.| unop |
|000020a0| 63 61 73 74 5f 65 78 70 | 72 20 20 25 70 72 65 63 |cast_exp|r %prec|
|000020b0| 20 55 4e 41 52 59 0d 09 | 09 7b 20 24 24 20 3d 20 | UNARY..|.{ $$ = |
|000020c0| 62 75 69 6c 64 5f 75 6e | 61 72 79 5f 6f 70 20 28 |build_un|ary_op (|
|000020d0| 24 31 2c 20 24 32 2c 20 | 30 29 3b 20 7d 0d 09 7c |$1, $2, |0); }..||
|000020e0| 20 53 49 5a 45 4f 46 20 | 75 6e 61 72 79 5f 65 78 | SIZEOF |unary_ex|
|000020f0| 70 72 20 20 25 70 72 65 | 63 20 55 4e 41 52 59 0d |pr %pre|c UNARY.|
|00002100| 09 09 7b 20 69 66 20 28 | 54 52 45 45 5f 43 4f 44 |..{ if (|TREE_COD|
|00002110| 45 20 28 24 32 29 20 3d | 3d 20 43 4f 4d 50 4f 4e |E ($2) =|= COMPON|
|00002120| 45 4e 54 5f 52 45 46 0d | 09 09 20 20 20 20 20 20 |ENT_REF.|.. |
|00002130| 26 26 20 54 52 45 45 5f | 50 41 43 4b 45 44 20 28 |&& TREE_|PACKED (|
|00002140| 54 52 45 45 5f 4f 50 45 | 52 41 4e 44 20 28 24 32 |TREE_OPE|RAND ($2|
|00002150| 2c 20 31 29 29 29 0d 09 | 09 20 20 20 20 65 72 72 |, 1)))..|. err|
|00002160| 6f 72 20 28 22 60 73 69 | 7a 65 6f 66 27 20 61 70 |or ("`si|zeof' ap|
|00002170| 70 6c 69 65 64 20 74 6f | 20 61 20 62 69 74 2d 66 |plied to| a bit-f|
|00002180| 69 65 6c 64 22 29 3b 0d | 09 09 20 20 2f 2a 20 41 |ield");.|.. /* A|
|00002190| 4e 53 49 20 73 61 79 73 | 20 61 72 72 61 79 73 20 |NSI says| arrays |
|000021a0| 61 6e 64 20 66 75 6e 63 | 74 69 6f 6e 73 20 61 72 |and func|tions ar|
|000021b0| 65 20 63 6f 6e 76 65 72 | 74 65 64 20 69 6e 73 69 |e conver|ted insi|
|000021c0| 64 65 20 63 6f 6d 6d 61 | 2e 0d 09 09 20 20 20 20 |de comma|.... |
|000021d0| 20 42 75 74 20 77 65 20 | 63 61 6e 27 74 20 72 65 | But we |can't re|
|000021e0| 61 6c 6c 79 20 63 6f 6e | 76 65 72 74 20 74 68 65 |ally con|vert the|
|000021f0| 6d 20 69 6e 20 62 75 69 | 6c 64 5f 63 6f 6d 70 6f |m in bui|ld_compo|
|00002200| 75 6e 64 5f 65 78 70 72 | 0d 09 09 20 20 20 20 20 |und_expr|... |
|00002210| 62 65 63 61 75 73 65 20 | 74 68 61 74 20 77 6f 75 |because |that wou|
|00002220| 6c 64 20 62 72 65 61 6b | 20 63 6f 6d 6d 61 73 20 |ld break| commas |
|00002230| 69 6e 20 6c 76 61 6c 75 | 65 73 2e 0d 09 09 20 20 |in lvalu|es.... |
|00002240| 20 20 20 53 6f 20 64 6f | 20 74 68 65 20 63 6f 6e | So do| the con|
|00002250| 76 65 72 73 69 6f 6e 20 | 68 65 72 65 20 69 66 20 |version |here if |
|00002260| 6f 70 65 72 61 6e 64 20 | 77 61 73 20 61 20 63 6f |operand |was a co|
|00002270| 6d 6d 61 2e 20 20 2a 2f | 0d 09 09 20 20 69 66 20 |mma. */|... if |
|00002280| 28 54 52 45 45 5f 43 4f | 44 45 20 28 24 32 29 20 |(TREE_CO|DE ($2) |
|00002290| 3d 3d 20 43 4f 4d 50 4f | 55 4e 44 5f 45 58 50 52 |== COMPO|UND_EXPR|
|000022a0| 0d 09 09 20 20 20 20 20 | 20 26 26 20 28 54 52 45 |... | && (TRE|
|000022b0| 45 5f 43 4f 44 45 20 28 | 54 52 45 45 5f 54 59 50 |E_CODE (|TREE_TYP|
|000022c0| 45 20 28 24 32 29 29 20 | 3d 3d 20 41 52 52 41 59 |E ($2)) |== ARRAY|
|000022d0| 5f 54 59 50 45 0d 09 09 | 09 20 20 7c 7c 20 54 52 |_TYPE...|. || TR|
|000022e0| 45 45 5f 43 4f 44 45 20 | 28 54 52 45 45 5f 54 59 |EE_CODE |(TREE_TY|
|000022f0| 50 45 20 28 24 32 29 29 | 20 3d 3d 20 46 55 4e 43 |PE ($2))| == FUNC|
|00002300| 54 49 4f 4e 5f 54 59 50 | 45 29 29 0d 09 09 20 20 |TION_TYP|E))... |
|00002310| 20 20 24 32 20 3d 20 64 | 65 66 61 75 6c 74 5f 63 | $2 = d|efault_c|
|00002320| 6f 6e 76 65 72 73 69 6f | 6e 20 28 24 32 29 3b 0d |onversio|n ($2);.|
|00002330| 09 09 20 20 24 24 20 3d | 20 63 5f 73 69 7a 65 6f |.. $$ =| c_sizeo|
|00002340| 66 20 28 54 52 45 45 5f | 54 59 50 45 20 28 24 32 |f (TREE_|TYPE ($2|
|00002350| 29 29 3b 20 7d 0d 09 7c | 20 53 49 5a 45 4f 46 20 |)); }..|| SIZEOF |
|00002360| 27 28 27 20 74 79 70 65 | 6e 61 6d 65 20 27 29 27 |'(' type|name ')'|
|00002370| 20 20 25 70 72 65 63 20 | 48 59 50 45 52 55 4e 41 | %prec |HYPERUNA|
|00002380| 52 59 0d 09 09 7b 20 24 | 24 20 3d 20 63 5f 73 69 |RY...{ $|$ = c_si|
|00002390| 7a 65 6f 66 20 28 67 72 | 6f 6b 74 79 70 65 6e 61 |zeof (gr|oktypena|
|000023a0| 6d 65 20 28 24 33 29 29 | 3b 20 7d 0d 09 7c 20 41 |me ($3))|; }..| A|
|000023b0| 4c 49 47 4e 4f 46 20 75 | 6e 61 72 79 5f 65 78 70 |LIGNOF u|nary_exp|
|000023c0| 72 20 20 25 70 72 65 63 | 20 55 4e 41 52 59 0d 09 |r %prec| UNARY..|
|000023d0| 09 7b 20 69 66 20 28 54 | 52 45 45 5f 43 4f 44 45 |.{ if (T|REE_CODE|
|000023e0| 20 28 24 32 29 20 3d 3d | 20 43 4f 4d 50 4f 4e 45 | ($2) ==| COMPONE|
|000023f0| 4e 54 5f 52 45 46 0d 09 | 09 20 20 20 20 20 20 26 |NT_REF..|. &|
|00002400| 26 20 54 52 45 45 5f 50 | 41 43 4b 45 44 20 28 54 |& TREE_P|ACKED (T|
|00002410| 52 45 45 5f 4f 50 45 52 | 41 4e 44 20 28 24 32 2c |REE_OPER|AND ($2,|
|00002420| 20 31 29 29 29 0d 09 09 | 20 20 20 20 65 72 72 6f | 1)))...| erro|
|00002430| 72 20 28 22 60 5f 5f 61 | 6c 69 67 6e 6f 66 27 20 |r ("`__a|lignof' |
|00002440| 61 70 70 6c 69 65 64 20 | 74 6f 20 61 20 62 69 74 |applied |to a bit|
|00002450| 2d 66 69 65 6c 64 22 29 | 3b 0d 09 09 20 20 69 66 |-field")|;... if|
|00002460| 20 28 54 52 45 45 5f 43 | 4f 44 45 20 28 24 32 29 | (TREE_C|ODE ($2)|
|00002470| 20 3d 3d 20 49 4e 44 49 | 52 45 43 54 5f 52 45 46 | == INDI|RECT_REF|
|00002480| 29 0d 09 09 20 20 20 20 | 7b 0d 09 09 20 20 20 20 |)... |{... |
|00002490| 20 20 74 72 65 65 20 74 | 20 3d 20 54 52 45 45 5f | tree t| = TREE_|
|000024a0| 4f 50 45 52 41 4e 44 20 | 28 24 32 2c 20 30 29 3b |OPERAND |($2, 0);|
|000024b0| 0d 09 09 20 20 20 20 20 | 20 74 72 65 65 20 62 65 |... | tree be|
|000024c0| 73 74 20 3d 20 74 3b 0d | 09 09 20 20 20 20 20 20 |st = t;.|.. |
|000024d0| 69 6e 74 20 62 65 73 74 | 61 6c 69 67 6e 20 3d 20 |int best|align = |
|000024e0| 54 59 50 45 5f 41 4c 49 | 47 4e 20 28 54 52 45 45 |TYPE_ALI|GN (TREE|
|000024f0| 5f 54 59 50 45 20 28 54 | 52 45 45 5f 54 59 50 45 |_TYPE (T|REE_TYPE|
|00002500| 20 28 74 29 29 29 3b 0d | 09 09 20 20 20 20 20 20 | (t)));.|.. |
|00002510| 77 68 69 6c 65 20 28 54 | 52 45 45 5f 43 4f 44 45 |while (T|REE_CODE|
|00002520| 20 28 74 29 20 3d 3d 20 | 4e 4f 50 5f 45 58 50 52 | (t) == |NOP_EXPR|
|00002530| 0d 09 09 09 20 20 20 20 | 20 26 26 20 54 52 45 45 |.... | && TREE|
|00002540| 5f 43 4f 44 45 20 28 54 | 52 45 45 5f 54 59 50 45 |_CODE (T|REE_TYPE|
|00002550| 20 28 54 52 45 45 5f 4f | 50 45 52 41 4e 44 20 28 | (TREE_O|PERAND (|
|00002560| 74 2c 20 30 29 29 29 20 | 3d 3d 20 50 4f 49 4e 54 |t, 0))) |== POINT|
|00002570| 45 52 5f 54 59 50 45 29 | 0d 09 09 09 7b 0d 09 09 |ER_TYPE)|....{...|
|00002580| 09 20 20 69 6e 74 20 74 | 68 69 73 61 6c 69 67 6e |. int t|hisalign|
|00002590| 3b 0d 09 09 09 20 20 74 | 20 3d 20 54 52 45 45 5f |;.... t| = TREE_|
|000025a0| 4f 50 45 52 41 4e 44 20 | 28 74 2c 20 30 29 3b 0d |OPERAND |(t, 0);.|
|000025b0| 09 09 09 20 20 74 68 69 | 73 61 6c 69 67 6e 20 3d |... thi|salign =|
|000025c0| 20 54 59 50 45 5f 41 4c | 49 47 4e 20 28 54 52 45 | TYPE_AL|IGN (TRE|
|000025d0| 45 5f 54 59 50 45 20 28 | 54 52 45 45 5f 54 59 50 |E_TYPE (|TREE_TYP|
|000025e0| 45 20 28 74 29 29 29 3b | 0d 09 09 09 20 20 69 66 |E (t)));|.... if|
|000025f0| 20 28 74 68 69 73 61 6c | 69 67 6e 20 3e 20 62 65 | (thisal|ign > be|
|00002600| 73 74 61 6c 69 67 6e 29 | 0d 09 09 09 20 20 20 20 |stalign)|.... |
|00002610| 62 65 73 74 20 3d 20 74 | 2c 20 62 65 73 74 61 6c |best = t|, bestal|
|00002620| 69 67 6e 20 3d 20 74 68 | 69 73 61 6c 69 67 6e 3b |ign = th|isalign;|
|00002630| 0d 09 09 09 7d 0d 09 09 | 20 20 20 20 20 20 24 24 |....}...| $$|
|00002640| 20 3d 20 63 5f 61 6c 69 | 67 6e 6f 66 20 28 54 52 | = c_ali|gnof (TR|
|00002650| 45 45 5f 54 59 50 45 20 | 28 54 52 45 45 5f 54 59 |EE_TYPE |(TREE_TY|
|00002660| 50 45 20 28 62 65 73 74 | 29 29 29 3b 0d 09 09 20 |PE (best|)));... |
|00002670| 20 20 20 7d 0d 09 09 20 | 20 65 6c 73 65 0d 09 09 | }... | else...|
|00002680| 20 20 20 20 7b 0d 09 09 | 20 20 20 20 20 20 2f 2a | {...| /*|
|00002690| 20 41 4e 53 49 20 73 61 | 79 73 20 61 72 72 61 79 | ANSI sa|ys array|
|000026a0| 73 20 61 6e 64 20 66 6e | 73 20 61 72 65 20 63 6f |s and fn|s are co|
|000026b0| 6e 76 65 72 74 65 64 20 | 69 6e 73 69 64 65 20 63 |nverted |inside c|
|000026c0| 6f 6d 6d 61 2e 0d 09 09 | 09 20 42 75 74 20 77 65 |omma....|. But we|
|000026d0| 20 63 61 6e 27 74 20 63 | 6f 6e 76 65 72 74 20 74 | can't c|onvert t|
|000026e0| 68 65 6d 20 69 6e 20 62 | 75 69 6c 64 5f 63 6f 6d |hem in b|uild_com|
|000026f0| 70 6f 75 6e 64 5f 65 78 | 70 72 0d 09 09 09 20 62 |pound_ex|pr.... b|
|00002700| 65 63 61 75 73 65 20 74 | 68 61 74 20 77 6f 75 6c |ecause t|hat woul|
|00002710| 64 20 62 72 65 61 6b 20 | 63 6f 6d 6d 61 73 20 69 |d break |commas i|
|00002720| 6e 20 6c 76 61 6c 75 65 | 73 2e 0d 09 09 09 20 53 |n lvalue|s..... S|
|00002730| 6f 20 64 6f 20 74 68 65 | 20 63 6f 6e 76 65 72 73 |o do the| convers|
|00002740| 69 6f 6e 20 68 65 72 65 | 20 69 66 20 6f 70 65 72 |ion here| if oper|
|00002750| 61 6e 64 20 77 61 73 20 | 61 20 63 6f 6d 6d 61 2e |and was |a comma.|
|00002760| 20 20 2a 2f 0d 09 09 20 | 20 20 20 20 20 69 66 20 | */... | if |
|00002770| 28 54 52 45 45 5f 43 4f | 44 45 20 28 24 32 29 20 |(TREE_CO|DE ($2) |
|00002780| 3d 3d 20 43 4f 4d 50 4f | 55 4e 44 5f 45 58 50 52 |== COMPO|UND_EXPR|
|00002790| 0d 09 09 09 20 20 26 26 | 20 28 54 52 45 45 5f 43 |.... &&| (TREE_C|
|000027a0| 4f 44 45 20 28 54 52 45 | 45 5f 54 59 50 45 20 28 |ODE (TRE|E_TYPE (|
|000027b0| 24 32 29 29 20 3d 3d 20 | 41 52 52 41 59 5f 54 59 |$2)) == |ARRAY_TY|
|000027c0| 50 45 0d 09 09 09 20 20 | 20 20 20 20 7c 7c 20 54 |PE.... | || T|
|000027d0| 52 45 45 5f 43 4f 44 45 | 20 28 54 52 45 45 5f 54 |REE_CODE| (TREE_T|
|000027e0| 59 50 45 20 28 24 32 29 | 29 20 3d 3d 20 46 55 4e |YPE ($2)|) == FUN|
|000027f0| 43 54 49 4f 4e 5f 54 59 | 50 45 29 29 0d 09 09 09 |CTION_TY|PE))....|
|00002800| 24 32 20 3d 20 64 65 66 | 61 75 6c 74 5f 63 6f 6e |$2 = def|ault_con|
|00002810| 76 65 72 73 69 6f 6e 20 | 28 24 32 29 3b 0d 09 09 |version |($2);...|
|00002820| 20 20 20 20 20 20 24 24 | 20 3d 20 63 5f 61 6c 69 | $$| = c_ali|
|00002830| 67 6e 6f 66 20 28 54 52 | 45 45 5f 54 59 50 45 20 |gnof (TR|EE_TYPE |
|00002840| 28 24 32 29 29 3b 0d 09 | 09 20 20 20 20 7d 0d 09 |($2));..|. }..|
|00002850| 09 7d 0d 09 7c 20 41 4c | 49 47 4e 4f 46 20 27 28 |.}..| AL|IGNOF '(|
|00002860| 27 20 74 79 70 65 6e 61 | 6d 65 20 27 29 27 20 20 |' typena|me ')' |
|00002870| 25 70 72 65 63 20 48 59 | 50 45 52 55 4e 41 52 59 |%prec HY|PERUNARY|
|00002880| 0d 09 09 7b 20 24 24 20 | 3d 20 63 5f 61 6c 69 67 |...{ $$ |= c_alig|
|00002890| 6e 6f 66 20 28 67 72 6f | 6b 74 79 70 65 6e 61 6d |nof (gro|ktypenam|
|000028a0| 65 20 28 24 33 29 29 3b | 20 7d 0d 09 3b 0d 0d 63 |e ($3));| }..;..c|
|000028b0| 61 73 74 5f 65 78 70 72 | 3a 0d 09 75 6e 61 72 79 |ast_expr|:..unary|
|000028c0| 5f 65 78 70 72 0d 09 7c | 20 27 28 27 20 74 79 70 |_expr..|| '(' typ|
|000028d0| 65 6e 61 6d 65 20 27 29 | 27 20 63 61 73 74 5f 65 |ename ')|' cast_e|
|000028e0| 78 70 72 20 20 25 70 72 | 65 63 20 55 4e 41 52 59 |xpr %pr|ec UNARY|
|000028f0| 0d 09 09 7b 20 74 72 65 | 65 20 74 79 70 65 20 3d |...{ tre|e type =|
|00002900| 20 67 72 6f 6b 74 79 70 | 65 6e 61 6d 65 20 28 24 | groktyp|ename ($|
|00002910| 32 29 3b 0d 09 09 20 20 | 24 24 20 3d 20 62 75 69 |2);... |$$ = bui|
|00002920| 6c 64 5f 63 5f 63 61 73 | 74 20 28 74 79 70 65 2c |ld_c_cas|t (type,|
|00002930| 20 24 34 29 3b 20 7d 0d | 09 7c 20 27 28 27 20 74 | $4); }.|.| '(' t|
|00002940| 79 70 65 6e 61 6d 65 20 | 27 29 27 20 27 7b 27 20 |ypename |')' '{' |
|00002950| 69 6e 69 74 6c 69 73 74 | 20 6d 61 79 62 65 63 6f |initlist| maybeco|
|00002960| 6d 6d 61 20 27 7d 27 20 | 20 25 70 72 65 63 20 55 |mma '}' | %prec U|
|00002970| 4e 41 52 59 0d 09 09 7b | 20 74 72 65 65 20 74 79 |NARY...{| tree ty|
|00002980| 70 65 20 3d 20 67 72 6f | 6b 74 79 70 65 6e 61 6d |pe = gro|ktypenam|
|00002990| 65 20 28 24 32 29 3b 0d | 09 09 20 20 69 66 20 28 |e ($2);.|.. if (|
|000029a0| 70 65 64 61 6e 74 69 63 | 29 0d 09 09 20 20 20 20 |pedantic|)... |
|000029b0| 77 61 72 6e 69 6e 67 20 | 28 22 41 4e 53 49 20 43 |warning |("ANSI C|
|000029c0| 20 66 6f 72 62 69 64 73 | 20 63 6f 6e 73 74 72 75 | forbids| constru|
|000029d0| 63 74 6f 72 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |ctor exp|ressions|
|000029e0| 22 29 3b 0d 09 09 20 20 | 24 24 20 3d 20 64 69 67 |");... |$$ = dig|
|000029f0| 65 73 74 5f 69 6e 69 74 | 20 28 74 79 70 65 2c 20 |est_init| (type, |
|00002a00| 62 75 69 6c 64 5f 6e 74 | 20 28 43 4f 4e 53 54 52 |build_nt| (CONSTR|
|00002a10| 55 43 54 4f 52 2c 20 4e | 55 4c 4c 5f 54 52 45 45 |UCTOR, N|ULL_TREE|
|00002a20| 2c 20 6e 72 65 76 65 72 | 73 65 20 28 24 35 29 29 |, nrever|se ($5))|
|00002a30| 2c 20 30 29 3b 0d 09 09 | 20 20 69 66 20 28 54 52 |, 0);...| if (TR|
|00002a40| 45 45 5f 43 4f 44 45 20 | 28 74 79 70 65 29 20 3d |EE_CODE |(type) =|
|00002a50| 3d 20 41 52 52 41 59 5f | 54 59 50 45 20 26 26 20 |= ARRAY_|TYPE && |
|00002a60| 54 59 50 45 5f 53 49 5a | 45 20 28 74 79 70 65 29 |TYPE_SIZ|E (type)|
|00002a70| 20 3d 3d 20 30 29 0d 09 | 09 20 20 20 20 7b 0d 09 | == 0)..|. {..|
|00002a80| 09 20 20 20 20 20 20 69 | 6e 74 20 66 61 69 6c 75 |. i|nt failu|
|00002a90| 72 65 20 3d 20 63 6f 6d | 70 6c 65 74 65 5f 61 72 |re = com|plete_ar|
|00002aa0| 72 61 79 5f 74 79 70 65 | 20 28 74 79 70 65 2c 20 |ray_type| (type, |
|00002ab0| 24 24 2c 20 31 29 3b 0d | 09 09 20 20 20 20 20 20 |$$, 1);.|.. |
|00002ac0| 69 66 20 28 66 61 69 6c | 75 72 65 29 0d 09 09 09 |if (fail|ure)....|
|00002ad0| 61 62 6f 72 74 20 28 29 | 3b 0d 09 09 20 20 20 20 |abort ()|;... |
|00002ae0| 7d 0d 09 09 7d 0d 09 3b | 0d 0d 65 78 70 72 5f 6e |}...}..;|..expr_n|
|00002af0| 6f 5f 63 6f 6d 6d 61 73 | 3a 0d 09 20 20 63 61 73 |o_commas|:.. cas|
|00002b00| 74 5f 65 78 70 72 0d 09 | 7c 20 65 78 70 72 5f 6e |t_expr..|| expr_n|
|00002b10| 6f 5f 63 6f 6d 6d 61 73 | 20 27 2b 27 20 65 78 70 |o_commas| '+' exp|
|00002b20| 72 5f 6e 6f 5f 63 6f 6d | 6d 61 73 0d 09 09 7b 20 |r_no_com|mas...{ |
|00002b30| 24 24 20 3d 20 62 75 69 | 6c 64 5f 62 69 6e 61 72 |$$ = bui|ld_binar|
|00002b40| 79 5f 6f 70 20 28 24 32 | 2c 20 24 31 2c 20 24 33 |y_op ($2|, $1, $3|
|00002b50| 29 3b 20 7d 0d 09 7c 20 | 65 78 70 72 5f 6e 6f 5f |); }..| |expr_no_|
|00002b60| 63 6f 6d 6d 61 73 20 27 | 2d 27 20 65 78 70 72 5f |commas '|-' expr_|
|00002b70| 6e 6f 5f 63 6f 6d 6d 61 | 73 0d 09 09 7b 20 24 24 |no_comma|s...{ $$|
|00002b80| 20 3d 20 62 75 69 6c 64 | 5f 62 69 6e 61 72 79 5f | = build|_binary_|
|00002b90| 6f 70 20 28 24 32 2c 20 | 24 31 2c 20 24 33 29 3b |op ($2, |$1, $3);|
|00002ba0| 20 7d 0d 09 7c 20 65 78 | 70 72 5f 6e 6f 5f 63 6f | }..| ex|pr_no_co|
|00002bb0| 6d 6d 61 73 20 27 2a 27 | 20 65 78 70 72 5f 6e 6f |mmas '*'| expr_no|
|00002bc0| 5f 63 6f 6d 6d 61 73 0d | 09 09 7b 20 24 24 20 3d |_commas.|..{ $$ =|
|00002bd0| 20 62 75 69 6c 64 5f 62 | 69 6e 61 72 79 5f 6f 70 | build_b|inary_op|
|00002be0| 20 28 24 32 2c 20 24 31 | 2c 20 24 33 29 3b 20 7d | ($2, $1|, $3); }|
|00002bf0| 0d 09 7c 20 65 78 70 72 | 5f 6e 6f 5f 63 6f 6d 6d |..| expr|_no_comm|
|00002c00| 61 73 20 27 2f 27 20 65 | 78 70 72 5f 6e 6f 5f 63 |as '/' e|xpr_no_c|
|00002c10| 6f 6d 6d 61 73 0d 09 09 | 7b 20 24 24 20 3d 20 62 |ommas...|{ $$ = b|
|00002c20| 75 69 6c 64 5f 62 69 6e | 61 72 79 5f 6f 70 20 28 |uild_bin|ary_op (|
|00002c30| 24 32 2c 20 24 31 2c 20 | 24 33 29 3b 20 7d 0d 09 |$2, $1, |$3); }..|
|00002c40| 7c 20 65 78 70 72 5f 6e | 6f 5f 63 6f 6d 6d 61 73 || expr_n|o_commas|
|00002c50| 20 27 25 27 20 65 78 70 | 72 5f 6e 6f 5f 63 6f 6d | '%' exp|r_no_com|
|00002c60| 6d 61 73 0d 09 09 7b 20 | 24 24 20 3d 20 62 75 69 |mas...{ |$$ = bui|
|00002c70| 6c 64 5f 62 69 6e 61 72 | 79 5f 6f 70 20 28 24 32 |ld_binar|y_op ($2|
|00002c80| 2c 20 24 31 2c 20 24 33 | 29 3b 20 7d 0d 09 7c 20 |, $1, $3|); }..| |
|00002c90| 65 78 70 72 5f 6e 6f 5f | 63 6f 6d 6d 61 73 20 4c |expr_no_|commas L|
|00002ca0| 53 48 49 46 54 20 65 78 | 70 72 5f 6e 6f 5f 63 6f |SHIFT ex|pr_no_co|
|00002cb0| 6d 6d 61 73 0d 09 09 7b | 20 24 24 20 3d 20 62 75 |mmas...{| $$ = bu|
|00002cc0| 69 6c 64 5f 62 69 6e 61 | 72 79 5f 6f 70 20 28 24 |ild_bina|ry_op ($|
|00002cd0| 32 2c 20 24 31 2c 20 24 | 33 29 3b 20 7d 0d 09 7c |2, $1, $|3); }..||
|00002ce0| 20 65 78 70 72 5f 6e 6f | 5f 63 6f 6d 6d 61 73 20 | expr_no|_commas |
|00002cf0| 52 53 48 49 46 54 20 65 | 78 70 72 5f 6e 6f 5f 63 |RSHIFT e|xpr_no_c|
|00002d00| 6f 6d 6d 61 73 0d 09 09 | 7b 20 24 24 20 3d 20 62 |ommas...|{ $$ = b|
|00002d10| 75 69 6c 64 5f 62 69 6e | 61 72 79 5f 6f 70 20 28 |uild_bin|ary_op (|
|00002d20| 24 32 2c 20 24 31 2c 20 | 24 33 29 3b 20 7d 0d 09 |$2, $1, |$3); }..|
|00002d30| 7c 20 65 78 70 72 5f 6e | 6f 5f 63 6f 6d 6d 61 73 || expr_n|o_commas|
|00002d40| 20 41 52 49 54 48 43 4f | 4d 50 41 52 45 20 65 78 | ARITHCO|MPARE ex|
|00002d50| 70 72 5f 6e 6f 5f 63 6f | 6d 6d 61 73 0d 09 09 7b |pr_no_co|mmas...{|
|00002d60| 20 24 24 20 3d 20 62 75 | 69 6c 64 5f 62 69 6e 61 | $$ = bu|ild_bina|
|00002d70| 72 79 5f 6f 70 20 28 24 | 32 2c 20 24 31 2c 20 24 |ry_op ($|2, $1, $|
|00002d80| 33 29 3b 20 7d 0d 09 7c | 20 65 78 70 72 5f 6e 6f |3); }..|| expr_no|
|00002d90| 5f 63 6f 6d 6d 61 73 20 | 45 51 43 4f 4d 50 41 52 |_commas |EQCOMPAR|
|00002da0| 45 20 65 78 70 72 5f 6e | 6f 5f 63 6f 6d 6d 61 73 |E expr_n|o_commas|
|00002db0| 0d 09 09 7b 20 24 24 20 | 3d 20 62 75 69 6c 64 5f |...{ $$ |= build_|
|00002dc0| 62 69 6e 61 72 79 5f 6f | 70 20 28 24 32 2c 20 24 |binary_o|p ($2, $|
|00002dd0| 31 2c 20 24 33 29 3b 20 | 7d 0d 09 7c 20 65 78 70 |1, $3); |}..| exp|
|00002de0| 72 5f 6e 6f 5f 63 6f 6d | 6d 61 73 20 27 26 27 20 |r_no_com|mas '&' |
|00002df0| 65 78 70 72 5f 6e 6f 5f | 63 6f 6d 6d 61 73 0d 09 |expr_no_|commas..|
|00002e00| 09 7b 20 24 24 20 3d 20 | 62 75 69 6c 64 5f 62 69 |.{ $$ = |build_bi|
|00002e10| 6e 61 72 79 5f 6f 70 20 | 28 24 32 2c 20 24 31 2c |nary_op |($2, $1,|
|00002e20| 20 24 33 29 3b 20 7d 0d | 09 7c 20 65 78 70 72 5f | $3); }.|.| expr_|
|00002e30| 6e 6f 5f 63 6f 6d 6d 61 | 73 20 27 7c 27 20 65 78 |no_comma|s '|' ex|
|00002e40| 70 72 5f 6e 6f 5f 63 6f | 6d 6d 61 73 0d 09 09 7b |pr_no_co|mmas...{|
|00002e50| 20 24 24 20 3d 20 62 75 | 69 6c 64 5f 62 69 6e 61 | $$ = bu|ild_bina|
|00002e60| 72 79 5f 6f 70 20 28 24 | 32 2c 20 24 31 2c 20 24 |ry_op ($|2, $1, $|
|00002e70| 33 29 3b 20 7d 0d 09 7c | 20 65 78 70 72 5f 6e 6f |3); }..|| expr_no|
|00002e80| 5f 63 6f 6d 6d 61 73 20 | 27 5e 27 20 65 78 70 72 |_commas |'^' expr|
|00002e90| 5f 6e 6f 5f 63 6f 6d 6d | 61 73 0d 09 09 7b 20 24 |_no_comm|as...{ $|
|00002ea0| 24 20 3d 20 62 75 69 6c | 64 5f 62 69 6e 61 72 79 |$ = buil|d_binary|
|00002eb0| 5f 6f 70 20 28 24 32 2c | 20 24 31 2c 20 24 33 29 |_op ($2,| $1, $3)|
|00002ec0| 3b 20 7d 0d 09 7c 20 65 | 78 70 72 5f 6e 6f 5f 63 |; }..| e|xpr_no_c|
|00002ed0| 6f 6d 6d 61 73 20 41 4e | 44 41 4e 44 20 65 78 70 |ommas AN|DAND exp|
|00002ee0| 72 5f 6e 6f 5f 63 6f 6d | 6d 61 73 0d 09 09 7b 20 |r_no_com|mas...{ |
|00002ef0| 24 24 20 3d 20 62 75 69 | 6c 64 5f 62 69 6e 61 72 |$$ = bui|ld_binar|
|00002f00| 79 5f 6f 70 20 28 54 52 | 55 54 48 5f 41 4e 44 49 |y_op (TR|UTH_ANDI|
|00002f10| 46 5f 45 58 50 52 2c 20 | 24 31 2c 20 24 33 29 3b |F_EXPR, |$1, $3);|
|00002f20| 20 7d 0d 09 7c 20 65 78 | 70 72 5f 6e 6f 5f 63 6f | }..| ex|pr_no_co|
|00002f30| 6d 6d 61 73 20 4f 52 4f | 52 20 65 78 70 72 5f 6e |mmas ORO|R expr_n|
|00002f40| 6f 5f 63 6f 6d 6d 61 73 | 0d 09 09 7b 20 24 24 20 |o_commas|...{ $$ |
|00002f50| 3d 20 62 75 69 6c 64 5f | 62 69 6e 61 72 79 5f 6f |= build_|binary_o|
|00002f60| 70 20 28 54 52 55 54 48 | 5f 4f 52 49 46 5f 45 58 |p (TRUTH|_ORIF_EX|
|00002f70| 50 52 2c 20 24 31 2c 20 | 24 33 29 3b 20 7d 0d 09 |PR, $1, |$3); }..|
|00002f80| 7c 20 65 78 70 72 5f 6e | 6f 5f 63 6f 6d 6d 61 73 || expr_n|o_commas|
|00002f90| 20 27 3f 27 20 78 65 78 | 70 72 20 27 3a 27 20 65 | '?' xex|pr ':' e|
|00002fa0| 78 70 72 5f 6e 6f 5f 63 | 6f 6d 6d 61 73 0d 09 09 |xpr_no_c|ommas...|
|00002fb0| 7b 20 24 24 20 3d 20 62 | 75 69 6c 64 5f 63 6f 6e |{ $$ = b|uild_con|
|00002fc0| 64 69 74 69 6f 6e 61 6c | 5f 65 78 70 72 20 28 24 |ditional|_expr ($|
|00002fd0| 31 2c 20 24 33 2c 20 24 | 35 29 3b 20 7d 0d 09 7c |1, $3, $|5); }..||
|00002fe0| 20 65 78 70 72 5f 6e 6f | 5f 63 6f 6d 6d 61 73 20 | expr_no|_commas |
|00002ff0| 27 3d 27 20 65 78 70 72 | 5f 6e 6f 5f 63 6f 6d 6d |'=' expr|_no_comm|
|00003000| 61 73 0d 09 09 7b 20 24 | 24 20 3d 20 62 75 69 6c |as...{ $|$ = buil|
|00003010| 64 5f 6d 6f 64 69 66 79 | 5f 65 78 70 72 20 28 24 |d_modify|_expr ($|
|00003020| 31 2c 20 4e 4f 50 5f 45 | 58 50 52 2c 20 24 33 29 |1, NOP_E|XPR, $3)|
|00003030| 3b 20 7d 0d 09 7c 20 65 | 78 70 72 5f 6e 6f 5f 63 |; }..| e|xpr_no_c|
|00003040| 6f 6d 6d 61 73 20 41 53 | 53 49 47 4e 20 65 78 70 |ommas AS|SIGN exp|
|00003050| 72 5f 6e 6f 5f 63 6f 6d | 6d 61 73 0d 09 09 7b 20 |r_no_com|mas...{ |
|00003060| 24 24 20 3d 20 62 75 69 | 6c 64 5f 6d 6f 64 69 66 |$$ = bui|ld_modif|
|00003070| 79 5f 65 78 70 72 20 28 | 24 31 2c 20 24 32 2c 20 |y_expr (|$1, $2, |
|00003080| 24 33 29 3b 20 7d 0d 09 | 3b 0d 0d 70 72 69 6d 61 |$3); }..|;..prima|
|00003090| 72 79 3a 0d 09 49 44 45 | 4e 54 49 46 49 45 52 0d |ry:..IDE|NTIFIER.|
|000030a0| 09 09 7b 20 24 24 20 3d | 20 6c 61 73 74 69 64 64 |..{ $$ =| lastidd|
|000030b0| 65 63 6c 3b 0d 09 09 20 | 20 2f 2a 20 4e 65 65 64 |ecl;... | /* Need|
|000030c0| 20 74 68 69 73 20 73 6f | 20 73 6f 6d 65 20 6d 61 | this so| some ma|
|000030d0| 63 68 69 6e 65 73 20 63 | 61 6e 20 69 6d 70 6f 72 |chines c|an impor|
|000030e0| 74 20 62 65 66 6f 72 65 | 20 63 6f 64 65 20 67 65 |t before| code ge|
|000030f0| 6e 2e 0d 09 09 20 20 20 | 20 20 48 61 73 20 74 6f |n.... | Has to|
|00003100| 20 67 6f 20 68 65 72 65 | 20 62 65 63 61 75 73 65 | go here| because|
|00003110| 20 6f 72 64 69 6e 61 72 | 79 20 64 65 63 6c 61 72 | ordinar|y declar|
|00003120| 65 64 20 74 68 69 6e 67 | 73 20 6d 69 67 68 74 0d |ed thing|s might.|
|00003130| 09 09 20 20 20 20 20 6e | 6f 74 20 62 65 20 65 78 |.. n|ot be ex|
|00003140| 61 6d 69 6e 65 64 20 61 | 67 61 69 6e 20 75 6e 74 |amined a|gain unt|
|00003150| 69 6c 20 61 66 74 65 72 | 20 66 75 6e 63 74 69 6f |il after| functio|
|00003160| 6e 20 61 73 6d 20 63 6f | 64 65 0d 09 09 20 20 20 |n asm co|de... |
|00003170| 20 20 68 61 73 20 62 65 | 65 6e 20 77 72 69 74 74 | has be|en writt|
|00003180| 65 6e 2e 20 2a 2f 0d 09 | 09 20 20 69 66 20 28 24 |en. */..|. if ($|
|00003190| 24 29 20 69 6d 70 6f 72 | 74 5f 61 5f 64 65 63 6c |$) impor|t_a_decl|
|000031a0| 61 72 65 64 5f 6e 61 6d | 65 28 24 24 29 3b 0d 09 |ared_nam|e($$);..|
|000031b0| 09 20 20 69 66 20 28 21 | 24 24 20 7c 7c 20 24 24 |. if (!|$$ || $$|
|000031c0| 20 3d 3d 20 65 72 72 6f | 72 5f 6d 61 72 6b 5f 6e | == erro|r_mark_n|
|000031d0| 6f 64 65 29 0d 09 09 20 | 20 20 20 7b 0d 09 09 20 |ode)... | {... |
|000031e0| 20 20 20 20 20 69 66 20 | 28 79 79 63 68 61 72 20 | if |(yychar |
|000031f0| 3d 3d 20 59 59 45 4d 50 | 54 59 29 0d 09 09 09 79 |== YYEMP|TY)....y|
|00003200| 79 63 68 61 72 20 3d 20 | 59 59 4c 45 58 3b 0d 09 |ychar = |YYLEX;..|
|00003210| 09 20 20 20 20 20 20 69 | 66 20 28 79 79 63 68 61 |. i|f (yycha|
|00003220| 72 20 3d 3d 20 27 28 27 | 29 0d 09 09 09 7b 0d 09 |r == '('|)....{..|
|00003230| 09 09 20 20 24 24 20 3d | 20 69 6d 70 6c 69 63 69 |.. $$ =| implici|
|00003240| 74 6c 79 5f 64 65 63 6c | 61 72 65 20 28 24 31 29 |tly_decl|are ($1)|
|00003250| 3b 0d 09 09 09 20 20 61 | 73 73 65 6d 62 6c 65 5f |;.... a|ssemble_|
|00003260| 65 78 74 65 72 6e 61 6c | 20 28 24 24 29 3b 0d 09 |external| ($$);..|
|00003270| 09 09 20 20 54 52 45 45 | 5f 55 53 45 44 20 28 24 |.. TREE|_USED ($|
|00003280| 24 29 20 3d 20 31 3b 0d | 09 09 09 7d 0d 09 09 20 |$) = 1;.|...}... |
|00003290| 20 20 20 20 20 65 6c 73 | 65 20 69 66 20 28 63 75 | els|e if (cu|
|000032a0| 72 72 65 6e 74 5f 66 75 | 6e 63 74 69 6f 6e 5f 64 |rrent_fu|nction_d|
|000032b0| 65 63 6c 20 3d 3d 20 30 | 29 0d 09 09 09 7b 0d 09 |ecl == 0|)....{..|
|000032c0| 09 09 20 20 65 72 72 6f | 72 20 28 22 60 25 73 27 |.. erro|r ("`%s'|
|000032d0| 20 75 6e 64 65 63 6c 61 | 72 65 64 2c 20 6f 75 74 | undecla|red, out|
|000032e0| 73 69 64 65 20 6f 66 20 | 66 75 6e 63 74 69 6f 6e |side of |function|
|000032f0| 73 22 2c 0d 09 09 09 09 | 20 49 44 45 4e 54 49 46 |s",.....| IDENTIF|
|00003300| 49 45 52 5f 50 4f 49 4e | 54 45 52 20 28 24 31 29 |IER_POIN|TER ($1)|
|00003310| 29 3b 0d 09 09 09 20 20 | 24 24 20 3d 20 65 72 72 |);.... |$$ = err|
|00003320| 6f 72 5f 6d 61 72 6b 5f | 6e 6f 64 65 3b 0d 09 09 |or_mark_|node;...|
|00003330| 09 7d 0d 09 09 20 20 20 | 20 20 20 65 6c 73 65 0d |.}... | else.|
|00003340| 09 09 09 7b 0d 09 09 09 | 20 20 69 66 20 28 49 44 |...{....| if (ID|
|00003350| 45 4e 54 49 46 49 45 52 | 5f 47 4c 4f 42 41 4c 5f |ENTIFIER|_GLOBAL_|
|00003360| 56 41 4c 55 45 20 28 24 | 31 29 20 21 3d 20 65 72 |VALUE ($|1) != er|
|00003370| 72 6f 72 5f 6d 61 72 6b | 5f 6e 6f 64 65 0d 09 09 |ror_mark|_node...|
|00003380| 09 20 20 20 20 20 20 7c | 7c 20 49 44 45 4e 54 49 |. ||| IDENTI|
|00003390| 46 49 45 52 5f 45 52 52 | 4f 52 5f 4c 4f 43 55 53 |FIER_ERR|OR_LOCUS|
|000033a0| 20 28 24 31 29 20 21 3d | 20 63 75 72 72 65 6e 74 | ($1) !=| current|
|000033b0| 5f 66 75 6e 63 74 69 6f | 6e 5f 64 65 63 6c 29 0d |_functio|n_decl).|
|000033c0| 09 09 09 20 20 20 20 7b | 0d 09 09 09 20 20 20 20 |... {|.... |
|000033d0| 20 20 65 72 72 6f 72 20 | 28 22 60 25 73 27 20 75 | error |("`%s' u|
|000033e0| 6e 64 65 63 6c 61 72 65 | 64 20 28 66 69 72 73 74 |ndeclare|d (first|
|000033f0| 20 75 73 65 20 74 68 69 | 73 20 66 75 6e 63 74 69 | use thi|s functi|
|00003400| 6f 6e 29 22 2c 0d 09 09 | 09 09 20 20 20 20 20 49 |on)",...|.. I|
|00003410| 44 45 4e 54 49 46 49 45 | 52 5f 50 4f 49 4e 54 45 |DENTIFIE|R_POINTE|
|00003420| 52 20 28 24 31 29 29 3b | 0d 0d 09 09 09 20 20 20 |R ($1));|..... |
|00003430| 20 20 20 69 66 20 28 21 | 20 75 6e 64 65 63 6c 61 | if (!| undecla|
|00003440| 72 65 64 5f 76 61 72 69 | 61 62 6c 65 5f 6e 6f 74 |red_vari|able_not|
|00003450| 69 63 65 29 0d 09 09 09 | 09 7b 0d 09 09 09 09 20 |ice)....|.{..... |
|00003460| 20 65 72 72 6f 72 20 28 | 22 28 45 61 63 68 20 75 | error (|"(Each u|
|00003470| 6e 64 65 63 6c 61 72 65 | 64 20 69 64 65 6e 74 69 |ndeclare|d identi|
|00003480| 66 69 65 72 20 69 73 20 | 72 65 70 6f 72 74 65 64 |fier is |reported|
|00003490| 20 6f 6e 6c 79 20 6f 6e | 63 65 22 29 3b 0d 09 09 | only on|ce");...|
|000034a0| 09 09 20 20 65 72 72 6f | 72 20 28 22 66 6f 72 20 |.. erro|r ("for |
|000034b0| 65 61 63 68 20 66 75 6e | 63 74 69 6f 6e 20 69 74 |each fun|ction it|
|000034c0| 20 61 70 70 65 61 72 73 | 20 69 6e 2e 29 22 29 3b | appears| in.)");|
|000034d0| 0d 09 09 09 09 20 20 75 | 6e 64 65 63 6c 61 72 65 |..... u|ndeclare|
|000034e0| 64 5f 76 61 72 69 61 62 | 6c 65 5f 6e 6f 74 69 63 |d_variab|le_notic|
|000034f0| 65 20 3d 20 31 3b 0d 09 | 09 09 09 7d 0d 09 09 09 |e = 1;..|...}....|
|00003500| 20 20 20 20 7d 0d 09 09 | 09 20 20 24 24 20 3d 20 | }...|. $$ = |
|00003510| 65 72 72 6f 72 5f 6d 61 | 72 6b 5f 6e 6f 64 65 3b |error_ma|rk_node;|
|00003520| 0d 09 09 09 20 20 2f 2a | 20 50 72 65 76 65 6e 74 |.... /*| Prevent|
|00003530| 20 72 65 70 65 61 74 65 | 64 20 65 72 72 6f 72 20 | repeate|d error |
|00003540| 6d 65 73 73 61 67 65 73 | 2e 20 20 2a 2f 0d 09 09 |messages|. */...|
|00003550| 09 20 20 49 44 45 4e 54 | 49 46 49 45 52 5f 47 4c |. IDENT|IFIER_GL|
|00003560| 4f 42 41 4c 5f 56 41 4c | 55 45 20 28 24 31 29 20 |OBAL_VAL|UE ($1) |
|00003570| 3d 20 65 72 72 6f 72 5f | 6d 61 72 6b 5f 6e 6f 64 |= error_|mark_nod|
|00003580| 65 3b 0d 09 09 09 20 20 | 49 44 45 4e 54 49 46 49 |e;.... |IDENTIFI|
|00003590| 45 52 5f 45 52 52 4f 52 | 5f 4c 4f 43 55 53 20 28 |ER_ERROR|_LOCUS (|
|000035a0| 24 31 29 20 3d 20 63 75 | 72 72 65 6e 74 5f 66 75 |$1) = cu|rrent_fu|
|000035b0| 6e 63 74 69 6f 6e 5f 64 | 65 63 6c 3b 0d 09 09 09 |nction_d|ecl;....|
|000035c0| 7d 0d 09 09 20 20 20 20 | 7d 0d 09 09 20 20 65 6c |}... |}... el|
|000035d0| 73 65 20 69 66 20 28 21 | 20 54 52 45 45 5f 55 53 |se if (!| TREE_US|
|000035e0| 45 44 20 28 24 24 29 29 | 0d 09 09 20 20 20 20 7b |ED ($$))|... {|
|000035f0| 0d 09 09 20 20 20 20 20 | 20 69 66 20 28 54 52 45 |... | if (TRE|
|00003600| 45 5f 45 58 54 45 52 4e | 41 4c 20 28 24 24 29 29 |E_EXTERN|AL ($$))|
|00003610| 0d 09 09 09 61 73 73 65 | 6d 62 6c 65 5f 65 78 74 |....asse|mble_ext|
|00003620| 65 72 6e 61 6c 20 28 24 | 24 29 3b 0d 09 09 20 20 |ernal ($|$);... |
|00003630| 20 20 20 20 54 52 45 45 | 5f 55 53 45 44 20 28 24 | TREE|_USED ($|
|00003640| 24 29 20 3d 20 31 3b 0d | 09 09 20 20 20 20 7d 0d |$) = 1;.|.. }.|
|00003650| 09 09 20 20 69 66 20 28 | 54 52 45 45 5f 43 4f 44 |.. if (|TREE_COD|
|00003660| 45 20 28 24 24 29 20 3d | 3d 20 43 4f 4e 53 54 5f |E ($$) =|= CONST_|
|00003670| 44 45 43 4c 29 0d 09 09 | 20 20 20 20 24 24 20 3d |DECL)...| $$ =|
|00003680| 20 44 45 43 4c 5f 49 4e | 49 54 49 41 4c 20 28 24 | DECL_IN|ITIAL ($|
|00003690| 24 29 3b 0d 09 09 7d 0d | 09 7c 20 43 4f 4e 53 54 |$);...}.|.| CONST|
|000036a0| 41 4e 54 0d 09 7c 20 73 | 74 72 69 6e 67 0d 09 09 |ANT..| s|tring...|
|000036b0| 7b 20 24 24 20 3d 20 63 | 6f 6d 62 69 6e 65 5f 73 |{ $$ = c|ombine_s|
|000036c0| 74 72 69 6e 67 73 20 28 | 24 31 29 3b 20 7d 0d 09 |trings (|$1); }..|
|000036d0| 7c 20 27 28 27 20 65 78 | 70 72 20 27 29 27 0d 09 || '(' ex|pr ')'..|
|000036e0| 09 7b 20 24 24 20 3d 20 | 24 32 3b 20 7d 0d 09 7c |.{ $$ = |$2; }..||
|000036f0| 20 27 28 27 20 65 72 72 | 6f 72 20 27 29 27 0d 09 | '(' err|or ')'..|
|00003700| 09 7b 20 24 24 20 3d 20 | 65 72 72 6f 72 5f 6d 61 |.{ $$ = |error_ma|
|00003710| 72 6b 5f 6e 6f 64 65 3b | 20 7d 0d 09 7c 20 27 28 |rk_node;| }..| '(|
|00003720| 27 0d 09 09 7b 20 69 66 | 20 28 63 75 72 72 65 6e |'...{ if| (curren|
|00003730| 74 5f 66 75 6e 63 74 69 | 6f 6e 5f 64 65 63 6c 20 |t_functi|on_decl |
|00003740| 3d 3d 20 30 29 0d 09 09 | 20 20 20 20 7b 0d 09 09 |== 0)...| {...|
|00003750| 20 20 20 20 20 20 65 72 | 72 6f 72 20 28 22 62 72 | er|ror ("br|
|00003760| 61 63 65 64 2d 67 72 6f | 75 70 20 77 69 74 68 69 |aced-gro|up withi|
|00003770| 6e 20 65 78 70 72 65 73 | 73 69 6f 6e 20 61 6c 6c |n expres|sion all|
|00003780| 6f 77 65 64 20 6f 6e 6c | 79 20 69 6e 73 69 64 65 |owed onl|y inside|
|00003790| 20 61 20 66 75 6e 63 74 | 69 6f 6e 22 29 3b 0d 09 | a funct|ion");..|
|000037a0| 09 20 20 20 20 20 20 59 | 59 45 52 52 4f 52 3b 0d |. Y|YERROR;.|
|000037b0| 09 09 20 20 20 20 7d 0d | 09 09 20 20 6b 65 65 70 |.. }.|.. keep|
|000037c0| 5f 6e 65 78 74 5f 6c 65 | 76 65 6c 20 28 29 3b 0d |_next_le|vel ();.|
|000037d0| 09 09 20 20 24 3c 74 74 | 79 70 65 3e 24 20 3d 20 |.. $<tt|ype>$ = |
|000037e0| 65 78 70 61 6e 64 5f 73 | 74 61 72 74 5f 73 74 6d |expand_s|tart_stm|
|000037f0| 74 5f 65 78 70 72 20 28 | 29 3b 20 7d 0d 09 20 20 |t_expr (|); }.. |
|00003800| 63 6f 6d 70 73 74 6d 74 | 20 27 29 27 0d 09 09 7b |compstmt| ')'...{|
|00003810| 20 74 72 65 65 20 72 74 | 6c 5f 65 78 70 3b 0d 09 | tree rt|l_exp;..|
|00003820| 09 20 20 69 66 20 28 70 | 65 64 61 6e 74 69 63 29 |. if (p|edantic)|
|00003830| 0d 09 09 20 20 20 20 77 | 61 72 6e 69 6e 67 20 28 |... w|arning (|
|00003840| 22 41 4e 53 49 20 43 20 | 66 6f 72 62 69 64 73 20 |"ANSI C |forbids |
|00003850| 62 72 61 63 65 64 2d 67 | 72 6f 75 70 73 20 77 69 |braced-g|roups wi|
|00003860| 74 68 69 6e 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |thin exp|ressions|
|00003870| 22 29 3b 0d 09 09 20 20 | 72 74 6c 5f 65 78 70 20 |");... |rtl_exp |
|00003880| 3d 20 65 78 70 61 6e 64 | 5f 65 6e 64 5f 73 74 6d |= expand|_end_stm|
|00003890| 74 5f 65 78 70 72 20 28 | 24 3c 74 74 79 70 65 3e |t_expr (|$<ttype>|
|000038a0| 32 29 3b 0d 09 09 20 20 | 24 24 20 3d 20 24 33 3b |2);... |$$ = $3;|
|000038b0| 0d 09 09 20 20 54 52 45 | 45 5f 55 53 45 44 20 28 |... TRE|E_USED (|
|000038c0| 24 24 29 20 3d 20 30 3b | 0d 09 09 20 20 2f 2a 20 |$$) = 0;|... /* |
|000038d0| 53 69 6e 63 65 20 74 68 | 65 20 73 74 61 74 65 6d |Since th|e statem|
|000038e0| 65 6e 74 73 20 68 61 76 | 65 20 73 69 64 65 20 65 |ents hav|e side e|
|000038f0| 66 66 65 63 74 73 2c 0d | 09 09 20 20 20 20 20 63 |ffects,.|.. c|
|00003900| 6f 6e 73 69 64 65 72 20 | 74 68 69 73 20 76 6f 6c |onsider |this vol|
|00003910| 61 74 69 6c 65 2e 20 20 | 2a 2f 0d 09 09 20 20 54 |atile. |*/... T|
|00003920| 52 45 45 5f 56 4f 4c 41 | 54 49 4c 45 20 28 24 24 |REE_VOLA|TILE ($$|
|00003930| 29 20 3d 20 31 3b 0d 09 | 09 20 20 54 52 45 45 5f |) = 1;..|. TREE_|
|00003940| 54 59 50 45 20 28 24 24 | 29 20 3d 20 54 52 45 45 |TYPE ($$|) = TREE|
|00003950| 5f 54 59 50 45 20 28 72 | 74 6c 5f 65 78 70 29 3b |_TYPE (r|tl_exp);|
|00003960| 0d 09 09 20 20 53 54 4d | 54 5f 42 4f 44 59 20 28 |... STM|T_BODY (|
|00003970| 24 24 29 20 3d 20 72 74 | 6c 5f 65 78 70 3b 20 7d |$$) = rt|l_exp; }|
|00003980| 0d 09 7c 20 70 72 69 6d | 61 72 79 20 27 28 27 20 |..| prim|ary '(' |
|00003990| 65 78 70 72 6c 69 73 74 | 20 27 29 27 20 20 20 25 |exprlist| ')' %|
|000039a0| 70 72 65 63 20 27 2e 27 | 0d 09 09 7b 20 24 24 20 |prec '.'|...{ $$ |
|000039b0| 3d 20 62 75 69 6c 64 5f | 66 75 6e 63 74 69 6f 6e |= build_|function|
|000039c0| 5f 63 61 6c 6c 20 28 24 | 31 2c 20 24 33 29 3b 20 |_call ($|1, $3); |
|000039d0| 7d 0d 09 7c 20 70 72 69 | 6d 61 72 79 20 27 5b 27 |}..| pri|mary '['|
|000039e0| 20 65 78 70 72 20 27 5d | 27 20 20 20 25 70 72 65 | expr ']|' %pre|
|000039f0| 63 20 27 2e 27 0d 09 09 | 7b 20 24 24 20 3d 20 62 |c '.'...|{ $$ = b|
|00003a00| 75 69 6c 64 5f 61 72 72 | 61 79 5f 72 65 66 20 28 |uild_arr|ay_ref (|
|00003a10| 24 31 2c 20 24 33 29 3b | 20 7d 0d 09 7c 20 70 72 |$1, $3);| }..| pr|
|00003a20| 69 6d 61 72 79 20 27 2e | 27 20 69 64 65 6e 74 69 |imary '.|' identi|
|00003a30| 66 69 65 72 0d 09 09 7b | 20 24 24 20 3d 20 62 75 |fier...{| $$ = bu|
|00003a40| 69 6c 64 5f 63 6f 6d 70 | 6f 6e 65 6e 74 5f 72 65 |ild_comp|onent_re|
|00003a50| 66 20 28 24 31 2c 20 24 | 33 29 3b 20 7d 0d 09 7c |f ($1, $|3); }..||
|00003a60| 20 70 72 69 6d 61 72 79 | 20 50 4f 49 4e 54 53 41 | primary| POINTSA|
|00003a70| 54 20 69 64 65 6e 74 69 | 66 69 65 72 0d 09 09 7b |T identi|fier...{|
|00003a80| 20 24 24 20 3d 20 62 75 | 69 6c 64 5f 63 6f 6d 70 | $$ = bu|ild_comp|
|00003a90| 6f 6e 65 6e 74 5f 72 65 | 66 20 28 62 75 69 6c 64 |onent_re|f (build|
|00003aa0| 5f 69 6e 64 69 72 65 63 | 74 5f 72 65 66 20 28 24 |_indirec|t_ref ($|
|00003ab0| 31 2c 20 22 2d 3e 22 29 | 2c 20 24 33 29 3b 20 7d |1, "->")|, $3); }|
|00003ac0| 0d 09 7c 20 70 72 69 6d | 61 72 79 20 50 4c 55 53 |..| prim|ary PLUS|
|00003ad0| 50 4c 55 53 0d 09 09 7b | 20 24 24 20 3d 20 62 75 |PLUS...{| $$ = bu|
|00003ae0| 69 6c 64 5f 75 6e 61 72 | 79 5f 6f 70 20 28 50 4f |ild_unar|y_op (PO|
|00003af0| 53 54 49 4e 43 52 45 4d | 45 4e 54 5f 45 58 50 52 |STINCREM|ENT_EXPR|
|00003b00| 2c 20 24 31 2c 20 30 29 | 3b 20 7d 0d 09 7c 20 70 |, $1, 0)|; }..| p|
|00003b10| 72 69 6d 61 72 79 20 4d | 49 4e 55 53 4d 49 4e 55 |rimary M|INUSMINU|
|00003b20| 53 0d 09 09 7b 20 24 24 | 20 3d 20 62 75 69 6c 64 |S...{ $$| = build|
|00003b30| 5f 75 6e 61 72 79 5f 6f | 70 20 28 50 4f 53 54 44 |_unary_o|p (POSTD|
|00003b40| 45 43 52 45 4d 45 4e 54 | 5f 45 58 50 52 2c 20 24 |ECREMENT|_EXPR, $|
|00003b50| 31 2c 20 30 29 3b 20 7d | 0d 09 3b 0d 0d 2f 2a 20 |1, 0); }|..;../* |
|00003b60| 50 72 6f 64 75 63 65 73 | 20 61 20 53 54 52 49 4e |Produces| a STRIN|
|00003b70| 47 5f 43 53 54 20 77 69 | 74 68 20 70 65 72 68 61 |G_CST wi|th perha|
|00003b80| 70 73 20 6d 6f 72 65 20 | 53 54 52 49 4e 47 5f 43 |ps more |STRING_C|
|00003b90| 53 54 73 20 63 68 61 69 | 6e 65 64 20 6f 6e 74 6f |STs chai|ned onto|
|00003ba0| 20 69 74 2e 20 20 2a 2f | 0d 73 74 72 69 6e 67 3a | it. */|.string:|
|00003bb0| 0d 09 20 20 53 54 52 49 | 4e 47 0d 09 7c 20 73 74 |.. STRI|NG..| st|
|00003bc0| 72 69 6e 67 20 53 54 52 | 49 4e 47 0d 09 09 7b 20 |ring STR|ING...{ |
|00003bd0| 24 24 20 3d 20 63 68 61 | 69 6e 6f 6e 20 28 24 31 |$$ = cha|inon ($1|
|00003be0| 2c 20 24 32 29 3b 20 7d | 0d 09 3b 0d 0d 78 64 65 |, $2); }|..;..xde|
|00003bf0| 63 6c 73 3a 0d 09 2f 2a | 20 65 6d 70 74 79 20 2a |cls:../*| empty *|
|00003c00| 2f 0d 09 7c 20 64 65 63 | 6c 73 0d 09 3b 0d 0d 64 |/..| dec|ls..;..d|
|00003c10| 65 63 6c 73 3a 0d 09 64 | 65 63 6c 0d 09 7c 20 65 |ecls:..d|ecl..| e|
|00003c20| 72 72 73 74 6d 74 0d 09 | 7c 20 64 65 63 6c 73 20 |rrstmt..|| decls |
|00003c30| 64 65 63 6c 0d 09 7c 20 | 64 65 63 6c 20 65 72 72 |decl..| |decl err|
|00003c40| 73 74 6d 74 0d 09 3b 0d | 0d 2f 2a 20 72 65 63 6f |stmt..;.|./* reco|
|00003c50| 72 64 73 20 74 68 65 20 | 74 79 70 65 20 61 6e 64 |rds the |type and|
|00003c60| 20 73 74 6f 72 61 67 65 | 20 63 6c 61 73 73 20 73 | storage| class s|
|00003c70| 70 65 63 73 20 74 6f 20 | 75 73 65 20 66 6f 72 20 |pecs to |use for |
|00003c80| 70 72 6f 63 65 73 73 69 | 6e 67 0d 20 20 20 74 68 |processi|ng. th|
|00003c90| 65 20 64 65 63 6c 61 72 | 61 74 6f 72 73 20 74 68 |e declar|ators th|
|00003ca0| 61 74 20 66 6f 6c 6c 6f | 77 2e 0d 20 20 20 4d 61 |at follo|w.. Ma|
|00003cb0| 69 6e 74 61 69 6e 73 20 | 61 20 73 74 61 63 6b 20 |intains |a stack |
|00003cc0| 6f 66 20 6f 75 74 65 72 | 2d 6c 65 76 65 6c 20 76 |of outer|-level v|
|00003cd0| 61 6c 75 65 73 20 6f 66 | 20 63 75 72 72 65 6e 74 |alues of| current|
|00003ce0| 5f 64 65 63 6c 73 70 65 | 63 73 2c 0d 20 20 20 66 |_declspe|cs,. f|
|00003cf0| 6f 72 20 74 68 65 20 73 | 61 6b 65 20 6f 66 20 70 |or the s|ake of p|
|00003d00| 61 72 6d 20 64 65 63 6c | 61 72 61 74 69 6f 6e 73 |arm decl|arations|
|00003d10| 20 6e 65 73 74 65 64 20 | 69 6e 20 66 75 6e 63 74 | nested |in funct|
|00003d20| 69 6f 6e 20 64 65 63 6c | 61 72 61 74 6f 72 73 2e |ion decl|arators.|
|00003d30| 20 20 2a 2f 0d 73 65 74 | 73 70 65 63 73 3a 20 2f | */.set|specs: /|
|00003d40| 2a 20 65 6d 70 74 79 20 | 2a 2f 0d 09 09 7b 20 24 |* empty |*/...{ $|
|00003d50| 24 20 3d 20 73 75 73 70 | 65 6e 64 5f 6d 6f 6d 65 |$ = susp|end_mome|
|00003d60| 6e 74 61 72 79 20 28 29 | 3b 0d 09 09 20 20 64 65 |ntary ()|;... de|
|00003d70| 63 6c 73 70 65 63 5f 73 | 74 61 63 6b 20 3d 20 74 |clspec_s|tack = t|
|00003d80| 72 65 65 5f 63 6f 6e 73 | 20 28 30 2c 20 63 75 72 |ree_cons| (0, cur|
|00003d90| 72 65 6e 74 5f 64 65 63 | 6c 73 70 65 63 73 2c 0d |rent_dec|lspecs,.|
|00003da0| 09 09 09 09 09 20 20 20 | 20 20 20 64 65 63 6c 73 |..... | decls|
|00003db0| 70 65 63 5f 73 74 61 63 | 6b 29 3b 0d 09 09 20 20 |pec_stac|k);... |
|00003dc0| 63 75 72 72 65 6e 74 5f | 64 65 63 6c 73 70 65 63 |current_|declspec|
|00003dd0| 73 20 3d 20 24 3c 74 74 | 79 70 65 3e 30 3b 20 7d |s = $<tt|ype>0; }|
|00003de0| 0d 09 3b 0d 0d 64 65 63 | 6c 3a 0d 09 74 79 70 65 |..;..dec|l:..type|
|00003df0| 64 5f 64 65 63 6c 73 70 | 65 63 73 20 73 65 74 73 |d_declsp|ecs sets|
|00003e00| 70 65 63 73 20 69 6e 69 | 74 64 65 63 6c 73 20 27 |pecs ini|tdecls '|
|00003e10| 3b 27 0d 09 09 7b 20 63 | 75 72 72 65 6e 74 5f 64 |;'...{ c|urrent_d|
|00003e20| 65 63 6c 73 70 65 63 73 | 20 3d 20 54 52 45 45 5f |eclspecs| = TREE_|
|00003e30| 56 41 4c 55 45 20 28 64 | 65 63 6c 73 70 65 63 5f |VALUE (d|eclspec_|
|00003e40| 73 74 61 63 6b 29 3b 0d | 09 09 20 20 64 65 63 6c |stack);.|.. decl|
|00003e50| 73 70 65 63 5f 73 74 61 | 63 6b 20 3d 20 54 52 45 |spec_sta|ck = TRE|
|00003e60| 45 5f 43 48 41 49 4e 20 | 28 64 65 63 6c 73 70 65 |E_CHAIN |(declspe|
|00003e70| 63 5f 73 74 61 63 6b 29 | 3b 0d 09 09 20 20 72 65 |c_stack)|;... re|
|00003e80| 73 75 6d 65 5f 6d 6f 6d | 65 6e 74 61 72 79 20 28 |sume_mom|entary (|
|00003e90| 24 32 29 3b 20 7d 0d 09 | 7c 20 64 65 63 6c 6d 6f |$2); }..|| declmo|
|00003ea0| 64 73 20 73 65 74 73 70 | 65 63 73 20 6e 6f 74 79 |ds setsp|ecs noty|
|00003eb0| 70 65 5f 69 6e 69 74 64 | 65 63 6c 73 20 27 3b 27 |pe_initd|ecls ';'|
|00003ec0| 0d 09 09 7b 20 63 75 72 | 72 65 6e 74 5f 64 65 63 |...{ cur|rent_dec|
|00003ed0| 6c 73 70 65 63 73 20 3d | 20 54 52 45 45 5f 56 41 |lspecs =| TREE_VA|
|00003ee0| 4c 55 45 20 28 64 65 63 | 6c 73 70 65 63 5f 73 74 |LUE (dec|lspec_st|
|00003ef0| 61 63 6b 29 3b 0d 09 09 | 20 20 64 65 63 6c 73 70 |ack);...| declsp|
|00003f00| 65 63 5f 73 74 61 63 6b | 20 3d 20 54 52 45 45 5f |ec_stack| = TREE_|
|00003f10| 43 48 41 49 4e 20 28 64 | 65 63 6c 73 70 65 63 5f |CHAIN (d|eclspec_|
|00003f20| 73 74 61 63 6b 29 3b 0d | 09 09 20 20 72 65 73 75 |stack);.|.. resu|
|00003f30| 6d 65 5f 6d 6f 6d 65 6e | 74 61 72 79 20 28 24 32 |me_momen|tary ($2|
|00003f40| 29 3b 20 7d 0d 09 7c 20 | 74 79 70 65 64 5f 64 65 |); }..| |typed_de|
|00003f50| 63 6c 73 70 65 63 73 20 | 27 3b 27 0d 09 09 7b 20 |clspecs |';'...{ |
|00003f60| 73 68 61 64 6f 77 5f 74 | 61 67 20 28 24 31 29 3b |shadow_t|ag ($1);|
|00003f70| 20 7d 0d 09 7c 20 64 65 | 63 6c 6d 6f 64 73 20 27 | }..| de|clmods '|
|00003f80| 3b 27 0d 09 09 7b 20 77 | 61 72 6e 69 6e 67 20 28 |;'...{ w|arning (|
|00003f90| 22 65 6d 70 74 79 20 64 | 65 63 6c 61 72 61 74 69 |"empty d|eclarati|
|00003fa0| 6f 6e 22 29 3b 20 7d 0d | 09 3b 0d 0d 2f 2a 20 44 |on"); }.|.;../* D|
|00003fb0| 65 63 6c 73 70 65 63 73 | 20 77 68 69 63 68 20 63 |eclspecs| which c|
|00003fc0| 6f 6e 74 61 69 6e 20 61 | 74 20 6c 65 61 73 74 20 |ontain a|t least |
|00003fd0| 6f 6e 65 20 74 79 70 65 | 20 73 70 65 63 69 66 69 |one type| specifi|
|00003fe0| 65 72 20 6f 72 20 74 79 | 70 65 64 65 66 20 6e 61 |er or ty|pedef na|
|00003ff0| 6d 65 2e 0d 20 20 20 28 | 4a 75 73 74 20 60 63 6f |me.. (|Just `co|
|00004000| 6e 73 74 27 20 6f 72 20 | 60 76 6f 6c 61 74 69 6c |nst' or |`volatil|
|00004010| 65 27 20 69 73 20 6e 6f | 74 20 65 6e 6f 75 67 68 |e' is no|t enough|
|00004020| 2e 29 0d 20 20 20 41 20 | 74 79 70 65 64 65 66 27 |.). A |typedef'|
|00004030| 64 20 6e 61 6d 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |d name f|ollowing|
|00004040| 20 74 68 65 73 65 20 69 | 73 20 74 61 6b 65 6e 20 | these i|s taken |
|00004050| 61 73 20 61 20 6e 61 6d | 65 20 74 6f 20 62 65 20 |as a nam|e to be |
|00004060| 64 65 63 6c 61 72 65 64 | 2e 20 20 2a 2f 0d 0d 74 |declared|. */..t|
|00004070| 79 70 65 64 5f 64 65 63 | 6c 73 70 65 63 73 3a 0d |yped_dec|lspecs:.|
|00004080| 09 20 20 74 79 70 65 73 | 70 65 63 20 72 65 73 65 |. types|pec rese|
|00004090| 72 76 65 64 5f 64 65 63 | 6c 73 70 65 63 73 0d 09 |rved_dec|lspecs..|
|000040a0| 09 7b 20 24 24 20 3d 20 | 74 72 65 65 5f 63 6f 6e |.{ $$ = |tree_con|
|000040b0| 73 20 28 4e 55 4c 4c 5f | 54 52 45 45 2c 20 24 31 |s (NULL_|TREE, $1|
|000040c0| 2c 20 24 32 29 3b 20 7d | 0d 09 7c 20 64 65 63 6c |, $2); }|..| decl|
|000040d0| 6d 6f 64 73 20 74 79 70 | 65 73 70 65 63 20 72 65 |mods typ|espec re|
|000040e0| 73 65 72 76 65 64 5f 64 | 65 63 6c 73 70 65 63 73 |served_d|eclspecs|
|000040f0| 0d 09 09 7b 20 24 24 20 | 3d 20 63 68 61 69 6e 6f |...{ $$ |= chaino|
|00004100| 6e 20 28 24 33 2c 20 74 | 72 65 65 5f 63 6f 6e 73 |n ($3, t|ree_cons|
|00004110| 20 28 4e 55 4c 4c 5f 54 | 52 45 45 2c 20 24 32 2c | (NULL_T|REE, $2,|
|00004120| 20 24 31 29 29 3b 20 7d | 0d 09 3b 0d 0d 72 65 73 | $1)); }|..;..res|
|00004130| 65 72 76 65 64 5f 64 65 | 63 6c 73 70 65 63 73 3a |erved_de|clspecs:|
|00004140| 20 20 2f 2a 20 65 6d 70 | 74 79 20 2a 2f 0d 09 09 | /* emp|ty */...|
|00004150| 7b 20 24 24 20 3d 20 4e | 55 4c 4c 5f 54 52 45 45 |{ $$ = N|ULL_TREE|
|00004160| 3b 20 7d 0d 09 7c 20 72 | 65 73 65 72 76 65 64 5f |; }..| r|eserved_|
|00004170| 64 65 63 6c 73 70 65 63 | 73 20 74 79 70 65 73 70 |declspec|s typesp|
|00004180| 65 63 71 75 61 6c 5f 72 | 65 73 65 72 76 65 64 0d |ecqual_r|eserved.|
|00004190| 09 09 7b 20 24 24 20 3d | 20 74 72 65 65 5f 63 6f |..{ $$ =| tree_co|
|000041a0| 6e 73 20 28 4e 55 4c 4c | 5f 54 52 45 45 2c 20 24 |ns (NULL|_TREE, $|
|000041b0| 32 2c 20 24 31 29 3b 20 | 7d 0d 09 7c 20 72 65 73 |2, $1); |}..| res|
|000041c0| 65 72 76 65 64 5f 64 65 | 63 6c 73 70 65 63 73 20 |erved_de|clspecs |
|000041d0| 53 43 53 50 45 43 0d 09 | 09 7b 20 24 24 20 3d 20 |SCSPEC..|.{ $$ = |
|000041e0| 74 72 65 65 5f 63 6f 6e | 73 20 28 4e 55 4c 4c 5f |tree_con|s (NULL_|
|000041f0| 54 52 45 45 2c 20 24 32 | 2c 20 24 31 29 3b 20 7d |TREE, $2|, $1); }|
|00004200| 0d 09 3b 0d 0d 2f 2a 20 | 4c 69 73 74 20 6f 66 20 |..;../* |List of |
|00004210| 6a 75 73 74 20 73 74 6f | 72 61 67 65 20 63 6c 61 |just sto|rage cla|
|00004220| 73 73 65 73 20 61 6e 64 | 20 74 79 70 65 20 6d 6f |sses and| type mo|
|00004230| 64 69 66 69 65 72 73 2e | 0d 20 20 20 41 20 64 65 |difiers.|. A de|
|00004240| 63 6c 61 72 61 74 69 6f | 6e 20 63 61 6e 20 73 74 |claratio|n can st|
|00004250| 61 72 74 20 77 69 74 68 | 20 6a 75 73 74 20 74 68 |art with| just th|
|00004260| 69 73 2c 20 62 75 74 20 | 74 68 65 6e 20 69 74 20 |is, but |then it |
|00004270| 63 61 6e 6e 6f 74 20 62 | 65 20 75 73 65 64 0d 20 |cannot b|e used. |
|00004280| 20 20 74 6f 20 72 65 64 | 65 63 6c 61 72 65 20 61 | to red|eclare a|
|00004290| 20 74 79 70 65 64 65 66 | 2d 6e 61 6d 65 2e 20 20 | typedef|-name. |
|000042a0| 2a 2f 0d 0d 64 65 63 6c | 6d 6f 64 73 3a 0d 09 20 |*/..decl|mods:.. |
|000042b0| 20 54 59 50 45 5f 51 55 | 41 4c 0d 09 09 7b 20 24 | TYPE_QU|AL...{ $|
|000042c0| 24 20 3d 20 74 72 65 65 | 5f 63 6f 6e 73 20 28 4e |$ = tree|_cons (N|
|000042d0| 55 4c 4c 5f 54 52 45 45 | 2c 20 24 31 2c 20 4e 55 |ULL_TREE|, $1, NU|
|000042e0| 4c 4c 5f 54 52 45 45 29 | 3b 20 7d 0d 09 7c 20 53 |LL_TREE)|; }..| S|
|000042f0| 43 53 50 45 43 0d 09 09 | 7b 20 24 24 20 3d 20 74 |CSPEC...|{ $$ = t|
|00004300| 72 65 65 5f 63 6f 6e 73 | 20 28 4e 55 4c 4c 5f 54 |ree_cons| (NULL_T|
|00004310| 52 45 45 2c 20 24 31 2c | 20 4e 55 4c 4c 5f 54 52 |REE, $1,| NULL_TR|
|00004320| 45 45 29 3b 20 7d 0d 09 | 7c 20 64 65 63 6c 6d 6f |EE); }..|| declmo|
|00004330| 64 73 20 54 59 50 45 5f | 51 55 41 4c 0d 09 09 7b |ds TYPE_|QUAL...{|
|00004340| 20 24 24 20 3d 20 74 72 | 65 65 5f 63 6f 6e 73 20 | $$ = tr|ee_cons |
|00004350| 28 4e 55 4c 4c 5f 54 52 | 45 45 2c 20 24 32 2c 20 |(NULL_TR|EE, $2, |
|00004360| 24 31 29 3b 20 7d 0d 09 | 7c 20 64 65 63 6c 6d 6f |$1); }..|| declmo|
|00004370| 64 73 20 53 43 53 50 45 | 43 0d 09 09 7b 20 24 24 |ds SCSPE|C...{ $$|
|00004380| 20 3d 20 74 72 65 65 5f | 63 6f 6e 73 20 28 4e 55 | = tree_|cons (NU|
|00004390| 4c 4c 5f 54 52 45 45 2c | 20 24 32 2c 20 24 31 29 |LL_TREE,| $2, $1)|
|000043a0| 3b 20 7d 0d 09 3b 0d 0d | 0d 2f 2a 20 55 73 65 64 |; }..;..|./* Used|
|000043b0| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 64 65 63 6c | instead| of decl|
|000043c0| 73 70 65 63 73 20 77 68 | 65 72 65 20 73 74 6f 72 |specs wh|ere stor|
|000043d0| 61 67 65 20 63 6c 61 73 | 73 65 73 20 61 72 65 20 |age clas|ses are |
|000043e0| 6e 6f 74 20 61 6c 6c 6f | 77 65 64 0d 20 20 20 28 |not allo|wed. (|
|000043f0| 74 68 61 74 20 69 73 2c | 20 66 6f 72 20 74 79 70 |that is,| for typ|
|00004400| 65 6e 61 6d 65 73 20 61 | 6e 64 20 73 74 72 75 63 |enames a|nd struc|
|00004410| 74 75 72 65 20 63 6f 6d | 70 6f 6e 65 6e 74 73 29 |ture com|ponents)|
|00004420| 2e 0d 20 20 20 44 6f 6e | 27 74 20 61 63 63 65 70 |.. Don|'t accep|
|00004430| 74 20 61 20 74 79 70 65 | 64 65 66 2d 6e 61 6d 65 |t a type|def-name|
|00004440| 20 69 66 20 61 6e 79 74 | 68 69 6e 67 20 62 75 74 | if anyt|hing but|
|00004450| 20 61 20 6d 6f 64 69 66 | 69 65 72 20 70 72 65 63 | a modif|ier prec|
|00004460| 65 64 65 73 20 69 74 2e | 20 20 2a 2f 0d 0d 74 79 |edes it.| */..ty|
|00004470| 70 65 64 5f 74 79 70 65 | 73 70 65 63 73 3a 0d 09 |ped_type|specs:..|
|00004480| 20 20 74 79 70 65 73 70 | 65 63 20 72 65 73 65 72 | typesp|ec reser|
|00004490| 76 65 64 5f 74 79 70 65 | 73 70 65 63 71 75 61 6c |ved_type|specqual|
|000044a0| 73 0d 09 09 7b 20 24 24 | 20 3d 20 74 72 65 65 5f |s...{ $$| = tree_|
|000044b0| 63 6f 6e 73 20 28 4e 55 | 4c 4c 5f 54 52 45 45 2c |cons (NU|LL_TREE,|
|000044c0| 20 24 31 2c 20 24 32 29 | 3b 20 7d 0d 09 7c 20 6e | $1, $2)|; }..| n|
|000044d0| 6f 6e 65 6d 70 74 79 5f | 74 79 70 65 5f 71 75 61 |onempty_|type_qua|
|000044e0| 6c 73 20 74 79 70 65 73 | 70 65 63 20 72 65 73 65 |ls types|pec rese|
|000044f0| 72 76 65 64 5f 74 79 70 | 65 73 70 65 63 71 75 61 |rved_typ|especqua|
|00004500| 6c 73 0d 09 09 7b 20 24 | 24 20 3d 20 63 68 61 69 |ls...{ $|$ = chai|
|00004510| 6e 6f 6e 20 28 24 33 2c | 20 74 72 65 65 5f 63 6f |non ($3,| tree_co|
|00004520| 6e 73 20 28 4e 55 4c 4c | 5f 54 52 45 45 2c 20 24 |ns (NULL|_TREE, $|
|00004530| 32 2c 20 24 31 29 29 3b | 20 7d 0d 09 3b 0d 0d 72 |2, $1));| }..;..r|
|00004540| 65 73 65 72 76 65 64 5f | 74 79 70 65 73 70 65 63 |eserved_|typespec|
|00004550| 71 75 61 6c 73 3a 20 20 | 2f 2a 20 65 6d 70 74 79 |quals: |/* empty|
|00004560| 20 2a 2f 0d 09 09 7b 20 | 24 24 20 3d 20 4e 55 4c | */...{ |$$ = NUL|
|00004570| 4c 5f 54 52 45 45 3b 20 | 7d 0d 09 7c 20 72 65 73 |L_TREE; |}..| res|
|00004580| 65 72 76 65 64 5f 74 79 | 70 65 73 70 65 63 71 75 |erved_ty|pespecqu|
|00004590| 61 6c 73 20 74 79 70 65 | 73 70 65 63 71 75 61 6c |als type|specqual|
|000045a0| 5f 72 65 73 65 72 76 65 | 64 0d 09 09 7b 20 24 24 |_reserve|d...{ $$|
|000045b0| 20 3d 20 74 72 65 65 5f | 63 6f 6e 73 20 28 4e 55 | = tree_|cons (NU|
|000045c0| 4c 4c 5f 54 52 45 45 2c | 20 24 32 2c 20 24 31 29 |LL_TREE,| $2, $1)|
|000045d0| 3b 20 7d 0d 09 3b 0d 0d | 2f 2a 20 41 20 74 79 70 |; }..;..|/* A typ|
|000045e0| 65 73 70 65 63 20 28 62 | 75 74 20 6e 6f 74 20 61 |espec (b|ut not a|
|000045f0| 20 74 79 70 65 20 71 75 | 61 6c 69 66 69 65 72 29 | type qu|alifier)|
|00004600| 2e 0d 20 20 20 4f 6e 63 | 65 20 77 65 20 68 61 76 |.. Onc|e we hav|
|00004610| 65 20 73 65 65 6e 20 6f | 6e 65 20 6f 66 20 74 68 |e seen o|ne of th|
|00004620| 65 73 65 20 69 6e 20 61 | 20 64 65 63 6c 61 72 61 |ese in a| declara|
|00004630| 74 69 6f 6e 2c 0d 20 20 | 20 69 66 20 61 20 74 79 |tion,. | if a ty|
|00004640| 70 65 64 65 66 20 6e 61 | 6d 65 20 61 70 70 65 61 |pedef na|me appea|
|00004650| 72 73 20 74 68 65 6e 20 | 69 74 20 69 73 20 62 65 |rs then |it is be|
|00004660| 69 6e 67 20 72 65 64 65 | 63 6c 61 72 65 64 2e 20 |ing rede|clared. |
|00004670| 20 2a 2f 0d 0d 74 79 70 | 65 73 70 65 63 3a 20 54 | */..typ|espec: T|
|00004680| 59 50 45 53 50 45 43 0d | 09 7c 20 73 74 72 75 63 |YPESPEC.|.| struc|
|00004690| 74 73 70 0d 09 7c 20 54 | 59 50 45 4e 41 4d 45 0d |tsp..| T|YPENAME.|
|000046a0| 09 7c 20 54 59 50 45 4f | 46 20 27 28 27 20 65 78 |.| TYPEO|F '(' ex|
|000046b0| 70 72 20 27 29 27 0d 09 | 09 7b 20 24 24 20 3d 20 |pr ')'..|.{ $$ = |
|000046c0| 54 52 45 45 5f 54 59 50 | 45 20 28 24 33 29 3b 0d |TREE_TYP|E ($3);.|
|000046d0| 09 09 20 20 69 66 20 28 | 70 65 64 61 6e 74 69 63 |.. if (|pedantic|
|000046e0| 29 0d 09 09 20 20 20 20 | 77 61 72 6e 69 6e 67 20 |)... |warning |
|000046f0| 28 22 41 4e 53 49 20 43 | 20 66 6f 72 62 69 64 73 |("ANSI C| forbids|
|00004700| 20 60 74 79 70 65 6f 66 | 27 22 29 3b 20 7d 0d 09 | `typeof|'"); }..|
|00004710| 7c 20 54 59 50 45 4f 46 | 20 27 28 27 20 74 79 70 || TYPEOF| '(' typ|
|00004720| 65 6e 61 6d 65 20 27 29 | 27 0d 09 09 7b 20 24 24 |ename ')|'...{ $$|
|00004730| 20 3d 20 67 72 6f 6b 74 | 79 70 65 6e 61 6d 65 20 | = grokt|ypename |
|00004740| 28 24 33 29 3b 0d 09 09 | 20 20 69 66 20 28 70 65 |($3);...| if (pe|
|00004750| 64 61 6e 74 69 63 29 0d | 09 09 20 20 20 20 77 61 |dantic).|.. wa|
|00004760| 72 6e 69 6e 67 20 28 22 | 41 4e 53 49 20 43 20 66 |rning ("|ANSI C f|
|00004770| 6f 72 62 69 64 73 20 60 | 74 79 70 65 6f 66 27 22 |orbids `|typeof'"|
|00004780| 29 3b 20 7d 0d 09 3b 0d | 0d 2f 2a 20 41 20 74 79 |); }..;.|./* A ty|
|00004790| 70 65 73 70 65 63 20 74 | 68 61 74 20 69 73 20 61 |pespec t|hat is a|
|000047a0| 20 72 65 73 65 72 76 65 | 64 20 77 6f 72 64 2c 20 | reserve|d word, |
|000047b0| 6f 72 20 61 20 74 79 70 | 65 20 71 75 61 6c 69 66 |or a typ|e qualif|
|000047c0| 69 65 72 2e 20 20 2a 2f | 0d 0d 74 79 70 65 73 70 |ier. */|..typesp|
|000047d0| 65 63 71 75 61 6c 5f 72 | 65 73 65 72 76 65 64 3a |ecqual_r|eserved:|
|000047e0| 20 54 59 50 45 53 50 45 | 43 0d 09 7c 20 54 59 50 | TYPESPE|C..| TYP|
|000047f0| 45 5f 51 55 41 4c 0d 09 | 7c 20 73 74 72 75 63 74 |E_QUAL..|| struct|
|00004800| 73 70 0d 09 3b 0d 0d 69 | 6e 69 74 64 65 63 6c 73 |sp..;..i|nitdecls|
|00004810| 3a 0d 09 69 6e 69 74 64 | 63 6c 0d 09 7c 20 69 6e |:..initd|cl..| in|
|00004820| 69 74 64 65 63 6c 73 20 | 27 2c 27 20 69 6e 69 74 |itdecls |',' init|
|00004830| 64 63 6c 0d 09 3b 0d 0d | 6e 6f 74 79 70 65 5f 69 |dcl..;..|notype_i|
|00004840| 6e 69 74 64 65 63 6c 73 | 3a 0d 09 6e 6f 74 79 70 |nitdecls|:..notyp|
|00004850| 65 5f 69 6e 69 74 64 63 | 6c 0d 09 7c 20 6e 6f 74 |e_initdc|l..| not|
|00004860| 79 70 65 5f 69 6e 69 74 | 64 65 63 6c 73 20 27 2c |ype_init|decls ',|
|00004870| 27 20 69 6e 69 74 64 63 | 6c 0d 09 3b 0d 0d 6d 61 |' initdc|l..;..ma|
|00004880| 79 62 65 61 73 6d 3a 0d | 09 20 20 2f 2a 20 65 6d |ybeasm:.|. /* em|
|00004890| 70 74 79 20 2a 2f 0d 09 | 09 7b 20 24 24 20 3d 20 |pty */..|.{ $$ = |
|000048a0| 4e 55 4c 4c 5f 54 52 45 | 45 3b 20 7d 0d 09 7c 20 |NULL_TRE|E; }..| |
|000048b0| 41 53 4d 20 27 28 27 20 | 73 74 72 69 6e 67 20 27 |ASM '(' |string '|
|000048c0| 29 27 0d 09 09 7b 20 69 | 66 20 28 54 52 45 45 5f |)'...{ i|f (TREE_|
|000048d0| 43 48 41 49 4e 20 28 24 | 33 29 29 20 24 33 20 3d |CHAIN ($|3)) $3 =|
|000048e0| 20 63 6f 6d 62 69 6e 65 | 5f 73 74 72 69 6e 67 73 | combine|_strings|
|000048f0| 20 28 24 33 29 3b 0d 09 | 09 20 20 24 24 20 3d 20 | ($3);..|. $$ = |
|00004900| 24 33 3b 0d 09 09 20 20 | 69 66 20 28 70 65 64 61 |$3;... |if (peda|
|00004910| 6e 74 69 63 29 0d 09 09 | 20 20 20 20 77 61 72 6e |ntic)...| warn|
|00004920| 69 6e 67 20 28 22 41 4e | 53 49 20 43 20 66 6f 72 |ing ("AN|SI C for|
|00004930| 62 69 64 73 20 75 73 65 | 20 6f 66 20 60 61 73 6d |bids use| of `asm|
|00004940| 27 20 6b 65 79 77 6f 72 | 64 22 29 3b 0d 09 09 7d |' keywor|d");...}|
|00004950| 0d 09 3b 0d 0d 69 6e 69 | 74 64 63 6c 3a 0d 09 20 |..;..ini|tdcl:.. |
|00004960| 20 64 65 63 6c 61 72 61 | 74 6f 72 20 6d 61 79 62 | declara|tor mayb|
|00004970| 65 61 73 6d 20 6d 61 79 | 62 65 5f 61 74 74 72 69 |easm may|be_attri|
|00004980| 62 75 74 65 20 27 3d 27 | 0d 09 09 7b 20 24 3c 74 |bute '='|...{ $<t|
|00004990| 74 79 70 65 3e 24 20 3d | 20 73 74 61 72 74 5f 64 |type>$ =| start_d|
|000049a0| 65 63 6c 20 28 24 31 2c | 20 63 75 72 72 65 6e 74 |ecl ($1,| current|
|000049b0| 5f 64 65 63 6c 73 70 65 | 63 73 2c 20 31 29 3b 20 |_declspe|cs, 1); |
|000049c0| 7d 0d 09 20 20 69 6e 69 | 74 0d 2f 2a 20 4e 6f 74 |}.. ini|t./* Not|
|000049d0| 65 20 68 6f 77 20 74 68 | 65 20 64 65 63 6c 61 72 |e how th|e declar|
|000049e0| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 76 61 72 |ation of| the var|
|000049f0| 69 61 62 6c 65 20 69 73 | 20 69 6e 20 65 66 66 65 |iable is| in effe|
|00004a00| 63 74 20 77 68 69 6c 65 | 20 69 74 73 20 69 6e 69 |ct while| its ini|
|00004a10| 74 20 69 73 20 70 61 72 | 73 65 64 21 20 2a 2f 0d |t is par|sed! */.|
|00004a20| 09 09 7b 20 66 69 6e 69 | 73 68 5f 64 65 63 6c 20 |..{ fini|sh_decl |
|00004a30| 28 24 3c 74 74 79 70 65 | 3e 35 2c 20 24 36 2c 20 |($<ttype|>5, $6, |
|00004a40| 24 32 29 3b 20 7d 0d 09 | 7c 20 64 65 63 6c 61 72 |$2); }..|| declar|
|00004a50| 61 74 6f 72 20 6d 61 79 | 62 65 61 73 6d 20 6d 61 |ator may|beasm ma|
|00004a60| 79 62 65 5f 61 74 74 72 | 69 62 75 74 65 0d 09 09 |ybe_attr|ibute...|
|00004a70| 7b 20 74 72 65 65 20 64 | 20 3d 20 73 74 61 72 74 |{ tree d| = start|
|00004a80| 5f 64 65 63 6c 20 28 24 | 31 2c 20 63 75 72 72 65 |_decl ($|1, curre|
|00004a90| 6e 74 5f 64 65 63 6c 73 | 70 65 63 73 2c 20 30 29 |nt_decls|pecs, 0)|
|00004aa0| 3b 0d 09 09 20 20 66 69 | 6e 69 73 68 5f 64 65 63 |;... fi|nish_dec|
|00004ab0| 6c 20 28 64 2c 20 4e 55 | 4c 4c 5f 54 52 45 45 2c |l (d, NU|LL_TREE,|
|00004ac0| 20 24 32 29 3b 20 7d 0d | 09 3b 0d 0d 6e 6f 74 79 | $2); }.|.;..noty|
|00004ad0| 70 65 5f 69 6e 69 74 64 | 63 6c 3a 0d 09 20 20 6e |pe_initd|cl:.. n|
|00004ae0| 6f 74 79 70 65 5f 64 65 | 63 6c 61 72 61 74 6f 72 |otype_de|clarator|
|00004af0| 20 6d 61 79 62 65 61 73 | 6d 20 6d 61 79 62 65 5f | maybeas|m maybe_|
|00004b00| 61 74 74 72 69 62 75 74 | 65 20 27 3d 27 0d 09 09 |attribut|e '='...|
|00004b10| 7b 20 24 3c 74 74 79 70 | 65 3e 24 20 3d 20 73 74 |{ $<ttyp|e>$ = st|
|00004b20| 61 72 74 5f 64 65 63 6c | 20 28 24 31 2c 20 63 75 |art_decl| ($1, cu|
|00004b30| 72 72 65 6e 74 5f 64 65 | 63 6c 73 70 65 63 73 2c |rrent_de|clspecs,|
|00004b40| 20 31 29 3b 20 7d 0d 09 | 20 20 69 6e 69 74 0d 2f | 1); }..| init./|
|00004b50| 2a 20 4e 6f 74 65 20 68 | 6f 77 20 74 68 65 20 64 |* Note h|ow the d|
|00004b60| 65 63 6c 61 72 61 74 69 | 6f 6e 20 6f 66 20 74 68 |eclarati|on of th|
|00004b70| 65 20 76 61 72 69 61 62 | 6c 65 20 69 73 20 69 6e |e variab|le is in|
|00004b80| 20 65 66 66 65 63 74 20 | 77 68 69 6c 65 20 69 74 | effect |while it|
|00004b90| 73 20 69 6e 69 74 20 69 | 73 20 70 61 72 73 65 64 |s init i|s parsed|
|00004ba0| 21 20 2a 2f 0d 09 09 7b | 20 66 69 6e 69 73 68 5f |! */...{| finish_|
|00004bb0| 64 65 63 6c 20 28 24 3c | 74 74 79 70 65 3e 35 2c |decl ($<|ttype>5,|
|00004bc0| 20 24 36 2c 20 24 32 29 | 3b 20 7d 0d 09 7c 20 6e | $6, $2)|; }..| n|
|00004bd0| 6f 74 79 70 65 5f 64 65 | 63 6c 61 72 61 74 6f 72 |otype_de|clarator|
|00004be0| 20 6d 61 79 62 65 61 73 | 6d 20 6d 61 79 62 65 5f | maybeas|m maybe_|
|00004bf0| 61 74 74 72 69 62 75 74 | 65 0d 09 09 7b 20 74 72 |attribut|e...{ tr|
|00004c00| 65 65 20 64 20 3d 20 73 | 74 61 72 74 5f 64 65 63 |ee d = s|tart_dec|
|00004c10| 6c 20 28 24 31 2c 20 63 | 75 72 72 65 6e 74 5f 64 |l ($1, c|urrent_d|
|00004c20| 65 63 6c 73 70 65 63 73 | 2c 20 30 29 3b 0d 09 09 |eclspecs|, 0);...|
|00004c30| 20 20 66 69 6e 69 73 68 | 5f 64 65 63 6c 20 28 64 | finish|_decl (d|
|00004c40| 2c 20 4e 55 4c 4c 5f 54 | 52 45 45 2c 20 24 32 29 |, NULL_T|REE, $2)|
|00004c50| 3b 20 7d 0d 09 3b 0d 2f | 2a 20 74 68 65 20 2a 20 |; }..;./|* the * |
|00004c60| 72 75 6c 65 73 20 61 72 | 65 20 64 75 6d 6d 69 65 |rules ar|e dummie|
|00004c70| 73 20 74 6f 20 61 63 63 | 65 70 74 20 74 68 65 20 |s to acc|ept the |
|00004c80| 41 70 6f 6c 6c 6f 20 65 | 78 74 65 6e 64 65 64 20 |Apollo e|xtended |
|00004c90| 73 79 6e 74 61 78 0d 20 | 20 20 73 6f 20 74 68 61 |syntax. | so tha|
|00004ca0| 74 20 74 68 65 20 68 65 | 61 64 65 72 20 66 69 6c |t the he|ader fil|
|00004cb0| 65 73 20 63 6f 6d 70 69 | 6c 65 2e 20 2a 2f 0d 6d |es compi|le. */.m|
|00004cc0| 61 79 62 65 5f 61 74 74 | 72 69 62 75 74 65 3a 0d |aybe_att|ribute:.|
|00004cd0| 20 20 20 20 2f 2a 20 65 | 6d 70 74 79 20 2a 2f 0d | /* e|mpty */.|
|00004ce0| 09 7b 20 24 24 20 3d 20 | 4e 55 4c 4c 5f 54 52 45 |.{ $$ = |NULL_TRE|
|00004cf0| 45 3b 20 7d 0d 20 20 20 | 20 7c 20 41 54 54 52 49 |E; }. | | ATTRI|
|00004d00| 42 55 54 45 20 27 28 27 | 20 27 28 27 20 61 74 74 |BUTE '('| '(' att|
|00004d10| 72 69 62 75 74 65 5f 6c | 69 73 74 20 27 29 27 20 |ribute_l|ist ')' |
|00004d20| 27 29 27 0d 20 20 20 20 | 20 20 20 20 7b 20 24 24 |')'. | { $$|
|00004d30| 20 3d 20 24 34 3b 20 7d | 0d 20 20 20 20 3b 0d 0d | = $4; }|. ;..|
|00004d40| 61 74 74 72 69 62 75 74 | 65 5f 6c 69 73 74 0d 20 |attribut|e_list. |
|00004d50| 20 20 20 3a 20 61 74 74 | 72 69 62 0d 20 20 20 20 | : att|rib. |
|00004d60| 7c 20 61 74 74 72 69 62 | 75 74 65 5f 6c 69 73 74 || attrib|ute_list|
|00004d70| 20 27 2c 27 20 61 74 74 | 72 69 62 0d 20 20 20 20 | ',' att|rib. |
|00004d80| 3b 0d 0d 61 74 74 72 69 | 62 0d 20 20 20 20 3a 20 |;..attri|b. : |
|00004d90| 49 44 45 4e 54 49 46 49 | 45 52 0d 09 7b 20 77 61 |IDENTIFI|ER..{ wa|
|00004da0| 72 6e 69 6e 67 20 28 22 | 60 25 73 27 20 61 74 74 |rning ("|`%s' att|
|00004db0| 72 69 62 75 74 65 20 64 | 69 72 65 63 74 69 76 65 |ribute d|irective|
|00004dc0| 20 69 67 6e 6f 72 65 64 | 22 2c 0d 09 09 20 20 20 | ignored|",... |
|00004dd0| 49 44 45 4e 54 49 46 49 | 45 52 5f 50 4f 49 4e 54 |IDENTIFI|ER_POINT|
|00004de0| 45 52 20 28 24 31 29 29 | 3b 0d 09 20 20 24 24 20 |ER ($1))|;.. $$ |
|00004df0| 3d 20 24 31 3b 20 7d 0d | 20 20 20 20 7c 20 49 44 |= $1; }.| | ID|
|00004e00| 45 4e 54 49 46 49 45 52 | 20 27 28 27 20 43 4f 4e |ENTIFIER| '(' CON|
|00004e10| 53 54 41 4e 54 20 27 29 | 27 0d 09 7b 20 2f 2a 20 |STANT ')|'..{ /* |
|00004e20| 69 66 20 6e 6f 74 20 22 | 61 6c 69 67 6e 65 64 28 |if not "|aligned(|
|00004e30| 31 29 22 2c 20 74 68 65 | 6e 20 69 73 73 75 65 20 |1)", the|n issue |
|00004e40| 77 61 72 6e 69 6e 67 20 | 2a 2f 0d 09 20 20 69 66 |warning |*/.. if|
|00004e50| 20 28 73 74 72 63 6d 70 | 20 28 49 44 45 4e 54 49 | (strcmp| (IDENTI|
|00004e60| 46 49 45 52 5f 50 4f 49 | 4e 54 45 52 20 28 24 31 |FIER_POI|NTER ($1|
|00004e70| 29 2c 20 22 61 6c 69 67 | 6e 65 64 22 29 20 21 3d |), "alig|ned") !=|
|00004e80| 20 30 0d 09 20 20 20 20 | 20 20 7c 7c 20 54 52 45 | 0.. | || TRE|
|00004e90| 45 5f 43 4f 44 45 20 28 | 24 33 29 20 21 3d 20 49 |E_CODE (|$3) != I|
|00004ea0| 4e 54 45 47 45 52 5f 43 | 53 54 0d 09 20 20 20 20 |NTEGER_C|ST.. |
|00004eb0| 20 20 7c 7c 20 54 52 45 | 45 5f 49 4e 54 5f 43 53 | || TRE|E_INT_CS|
|00004ec0| 54 5f 4c 4f 57 20 28 24 | 33 29 20 21 3d 20 31 29 |T_LOW ($|3) != 1)|
|00004ed0| 0d 09 20 20 20 20 77 61 | 72 6e 69 6e 67 20 28 22 |.. wa|rning ("|
|00004ee0| 60 25 73 27 20 61 74 74 | 72 69 62 75 74 65 20 64 |`%s' att|ribute d|
|00004ef0| 69 72 65 63 74 69 76 65 | 20 69 67 6e 6f 72 65 64 |irective| ignored|
|00004f00| 22 2c 0d 09 09 20 20 20 | 20 20 49 44 45 4e 54 49 |",... | IDENTI|
|00004f10| 46 49 45 52 5f 50 4f 49 | 4e 54 45 52 20 28 24 31 |FIER_POI|NTER ($1|
|00004f20| 29 29 3b 0d 09 20 20 24 | 24 20 3d 20 24 31 3b 20 |));.. $|$ = $1; |
|00004f30| 7d 0d 20 20 20 20 7c 20 | 49 44 45 4e 54 49 46 49 |}. | |IDENTIFI|
|00004f40| 45 52 20 27 28 27 20 69 | 64 65 6e 74 69 66 69 65 |ER '(' i|dentifie|
|00004f50| 72 73 20 27 29 27 0d 09 | 7b 20 77 61 72 6e 69 6e |rs ')'..|{ warnin|
|00004f60| 67 20 28 22 60 25 73 27 | 20 61 74 74 72 69 62 75 |g ("`%s'| attribu|
|00004f70| 74 65 20 64 69 72 65 63 | 74 69 76 65 20 69 67 6e |te direc|tive ign|
|00004f80| 6f 72 65 64 22 2c 0d 09 | 09 20 20 20 49 44 45 4e |ored",..|. IDEN|
|00004f90| 54 49 46 49 45 52 5f 50 | 4f 49 4e 54 45 52 20 28 |TIFIER_P|OINTER (|
|00004fa0| 24 31 29 29 3b 0d 09 20 | 20 24 24 20 3d 20 24 31 |$1));.. | $$ = $1|
|00004fb0| 3b 20 7d 0d 20 20 20 20 | 3b 0d 0d 69 6e 69 74 3a |; }. |;..init:|
|00004fc0| 0d 09 65 78 70 72 5f 6e | 6f 5f 63 6f 6d 6d 61 73 |..expr_n|o_commas|
|00004fd0| 0d 09 7c 20 27 7b 27 20 | 27 7d 27 0d 09 09 7b 20 |..| '{' |'}'...{ |
|00004fe0| 24 24 20 3d 20 62 75 69 | 6c 64 5f 6e 74 20 28 43 |$$ = bui|ld_nt (C|
|00004ff0| 4f 4e 53 54 52 55 43 54 | 4f 52 2c 20 4e 55 4c 4c |ONSTRUCT|OR, NULL|
|00005000| 5f 54 52 45 45 2c 20 4e | 55 4c 4c 5f 54 52 45 45 |_TREE, N|ULL_TREE|
|00005010| 29 3b 0d 09 09 20 20 69 | 66 20 28 70 65 64 61 6e |);... i|f (pedan|
|00005020| 74 69 63 29 0d 09 09 20 | 20 20 20 77 61 72 6e 69 |tic)... | warni|
|00005030| 6e 67 20 28 22 41 4e 53 | 49 20 43 20 66 6f 72 62 |ng ("ANS|I C forb|
|00005040| 69 64 73 20 65 6d 70 74 | 79 20 69 6e 69 74 69 61 |ids empt|y initia|
|00005050| 6c 69 7a 65 72 20 62 72 | 61 63 65 73 22 29 3b 20 |lizer br|aces"); |
|00005060| 7d 0d 09 7c 20 27 7b 27 | 20 69 6e 69 74 6c 69 73 |}..| '{'| initlis|
|00005070| 74 20 27 7d 27 0d 09 09 | 7b 20 24 24 20 3d 20 62 |t '}'...|{ $$ = b|
|00005080| 75 69 6c 64 5f 6e 74 20 | 28 43 4f 4e 53 54 52 55 |uild_nt |(CONSTRU|
|00005090| 43 54 4f 52 2c 20 4e 55 | 4c 4c 5f 54 52 45 45 2c |CTOR, NU|LL_TREE,|
|000050a0| 20 6e 72 65 76 65 72 73 | 65 20 28 24 32 29 29 3b | nrevers|e ($2));|
|000050b0| 20 7d 0d 09 7c 20 27 7b | 27 20 69 6e 69 74 6c 69 | }..| '{|' initli|
|000050c0| 73 74 20 27 2c 27 20 27 | 7d 27 0d 09 09 7b 20 24 |st ',' '|}'...{ $|
|000050d0| 24 20 3d 20 62 75 69 6c | 64 5f 6e 74 20 28 43 4f |$ = buil|d_nt (CO|
|000050e0| 4e 53 54 52 55 43 54 4f | 52 2c 20 4e 55 4c 4c 5f |NSTRUCTO|R, NULL_|
|000050f0| 54 52 45 45 2c 20 6e 72 | 65 76 65 72 73 65 20 28 |TREE, nr|everse (|
|00005100| 24 32 29 29 3b 20 7d 0d | 09 7c 20 65 72 72 6f 72 |$2)); }.|.| error|
|00005110| 0d 09 09 7b 20 24 24 20 | 3d 20 4e 55 4c 4c 5f 54 |...{ $$ |= NULL_T|
|00005120| 52 45 45 3b 20 7d 0d 09 | 3b 0d 0d 2f 2a 20 54 68 |REE; }..|;../* Th|
|00005130| 69 73 20 63 68 61 69 6e | 20 69 73 20 62 75 69 6c |is chain| is buil|
|00005140| 74 20 69 6e 20 72 65 76 | 65 72 73 65 20 6f 72 64 |t in rev|erse ord|
|00005150| 65 72 2c 0d 20 20 20 61 | 6e 64 20 70 75 74 20 69 |er,. a|nd put i|
|00005160| 6e 20 66 6f 72 77 61 72 | 64 20 6f 72 64 65 72 20 |n forwar|d order |
|00005170| 77 68 65 72 65 20 69 6e | 69 74 6c 69 73 74 20 69 |where in|itlist i|
|00005180| 73 20 75 73 65 64 2e 20 | 20 2a 2f 0d 69 6e 69 74 |s used. | */.init|
|00005190| 6c 69 73 74 3a 0d 09 20 | 20 69 6e 69 74 0d 09 09 |list:.. | init...|
|000051a0| 7b 20 24 24 20 3d 20 62 | 75 69 6c 64 5f 74 72 65 |{ $$ = b|uild_tre|
|000051b0| 65 5f 6c 69 73 74 20 28 | 4e 55 4c 4c 5f 54 52 45 |e_list (|NULL_TRE|
|000051c0| 45 2c 20 24 31 29 3b 20 | 7d 0d 09 7c 20 69 6e 69 |E, $1); |}..| ini|
|000051d0| 74 6c 69 73 74 20 27 2c | 27 20 69 6e 69 74 0d 09 |tlist ',|' init..|
|000051e0| 09 7b 20 24 24 20 3d 20 | 74 72 65 65 5f 63 6f 6e |.{ $$ = |tree_con|
|000051f0| 73 20 28 4e 55 4c 4c 5f | 54 52 45 45 2c 20 24 33 |s (NULL_|TREE, $3|
|00005200| 2c 20 24 31 29 3b 20 7d | 0d 09 3b 0d 0d 2f 2a 20 |, $1); }|..;../* |
|00005210| 41 6e 79 20 6b 69 6e 64 | 20 6f 66 20 64 65 63 6c |Any kind| of decl|
|00005220| 61 72 61 74 6f 72 20 28 | 74 68 75 73 2c 20 61 6c |arator (|thus, al|
|00005230| 6c 20 64 65 63 6c 61 72 | 61 74 6f 72 73 20 61 6c |l declar|ators al|
|00005240| 6c 6f 77 65 64 0d 20 20 | 20 61 66 74 65 72 20 61 |lowed. | after a|
|00005250| 6e 20 65 78 70 6c 69 63 | 69 74 20 74 79 70 65 73 |n explic|it types|
|00005260| 70 65 63 29 2e 20 20 2a | 2f 0d 0d 64 65 63 6c 61 |pec). *|/..decla|
|00005270| 72 61 74 6f 72 3a 0d 09 | 20 20 61 66 74 65 72 5f |rator:..| after_|
|00005280| 74 79 70 65 5f 64 65 63 | 6c 61 72 61 74 6f 72 0d |type_dec|larator.|
|00005290| 09 7c 20 6e 6f 74 79 70 | 65 5f 64 65 63 6c 61 72 |.| notyp|e_declar|
|000052a0| 61 74 6f 72 0d 09 3b 0d | 0d 2f 2a 20 41 20 64 65 |ator..;.|./* A de|
|000052b0| 63 6c 61 72 61 74 6f 72 | 20 74 68 61 74 20 69 73 |clarator| that is|
|000052c0| 20 61 6c 6c 6f 77 65 64 | 20 6f 6e 6c 79 20 61 66 | allowed| only af|
|000052d0| 74 65 72 20 61 6e 20 65 | 78 70 6c 69 63 69 74 20 |ter an e|xplicit |
|000052e0| 74 79 70 65 73 70 65 63 | 2e 20 20 2a 2f 0d 0d 61 |typespec|. */..a|
|000052f0| 66 74 65 72 5f 74 79 70 | 65 5f 64 65 63 6c 61 72 |fter_typ|e_declar|
|00005300| 61 74 6f 72 3a 0d 09 20 | 20 27 28 27 20 61 66 74 |ator:.. | '(' aft|
|00005310| 65 72 5f 74 79 70 65 5f | 64 65 63 6c 61 72 61 74 |er_type_|declarat|
|00005320| 6f 72 20 27 29 27 0d 09 | 09 7b 20 24 24 20 3d 20 |or ')'..|.{ $$ = |
|00005330| 24 32 3b 20 7d 0d 09 7c | 20 61 66 74 65 72 5f 74 |$2; }..|| after_t|
|00005340| 79 70 65 5f 64 65 63 6c | 61 72 61 74 6f 72 20 27 |ype_decl|arator '|
|00005350| 28 27 20 70 61 72 6d 6c | 69 73 74 5f 6f 72 5f 69 |(' parml|ist_or_i|
|00005360| 64 65 6e 74 69 66 69 65 | 72 73 20 20 25 70 72 65 |dentifie|rs %pre|
|00005370| 63 20 27 2e 27 0d 09 09 | 7b 20 24 24 20 3d 20 62 |c '.'...|{ $$ = b|
|00005380| 75 69 6c 64 5f 6e 74 20 | 28 43 41 4c 4c 5f 45 58 |uild_nt |(CALL_EX|
|00005390| 50 52 2c 20 24 31 2c 20 | 24 33 2c 20 4e 55 4c 4c |PR, $1, |$3, NULL|
|000053a0| 5f 54 52 45 45 29 3b 20 | 7d 0d 2f 2a 09 7c 20 61 |_TREE); |}./*.| a|
|000053b0| 66 74 65 72 5f 74 79 70 | 65 5f 64 65 63 6c 61 72 |fter_typ|e_declar|
|000053c0| 61 74 6f 72 20 27 28 27 | 20 65 72 72 6f 72 20 27 |ator '('| error '|
|000053d0| 29 27 20 20 25 70 72 65 | 63 20 27 2e 27 0d 09 09 |)' %pre|c '.'...|
|000053e0| 7b 20 24 24 20 3d 20 62 | 75 69 6c 64 5f 6e 74 20 |{ $$ = b|uild_nt |
|000053f0| 28 43 41 4c 4c 5f 45 58 | 50 52 2c 20 24 31 2c 20 |(CALL_EX|PR, $1, |
|00005400| 4e 55 4c 4c 5f 54 52 45 | 45 2c 20 4e 55 4c 4c 5f |NULL_TRE|E, NULL_|
|00005410| 54 52 45 45 29 3b 0d 09 | 09 20 20 70 6f 70 6c 65 |TREE);..|. pople|
|00005420| 76 65 6c 20 28 30 2c 20 | 30 2c 20 30 29 3b 20 7d |vel (0, |0, 0); }|
|00005430| 20 20 2a 2f 0d 09 7c 20 | 61 66 74 65 72 5f 74 79 | */..| |after_ty|
|00005440| 70 65 5f 64 65 63 6c 61 | 72 61 74 6f 72 20 27 5b |pe_decla|rator '[|
|00005450| 27 20 65 78 70 72 20 27 | 5d 27 20 20 25 70 72 65 |' expr '|]' %pre|
|00005460| 63 20 27 2e 27 0d 09 09 | 7b 20 24 24 20 3d 20 62 |c '.'...|{ $$ = b|
|00005470| 75 69 6c 64 5f 6e 74 20 | 28 41 52 52 41 59 5f 52 |uild_nt |(ARRAY_R|
|00005480| 45 46 2c 20 24 31 2c 20 | 24 33 29 3b 20 7d 0d 09 |EF, $1, |$3); }..|
|00005490| 7c 20 61 66 74 65 72 5f | 74 79 70 65 5f 64 65 63 || after_|type_dec|
|000054a0| 6c 61 72 61 74 6f 72 20 | 27 5b 27 20 27 5d 27 20 |larator |'[' ']' |
|000054b0| 20 25 70 72 65 63 20 27 | 2e 27 0d 09 09 7b 20 24 | %prec '|.'...{ $|
|000054c0| 24 20 3d 20 62 75 69 6c | 64 5f 6e 74 20 28 41 52 |$ = buil|d_nt (AR|
|000054d0| 52 41 59 5f 52 45 46 2c | 20 24 31 2c 20 4e 55 4c |RAY_REF,| $1, NUL|
|000054e0| 4c 5f 54 52 45 45 29 3b | 20 7d 0d 09 7c 20 27 2a |L_TREE);| }..| '*|
|000054f0| 27 20 74 79 70 65 5f 71 | 75 61 6c 73 20 61 66 74 |' type_q|uals aft|
|00005500| 65 72 5f 74 79 70 65 5f | 64 65 63 6c 61 72 61 74 |er_type_|declarat|
|00005510| 6f 72 20 20 25 70 72 65 | 63 20 55 4e 41 52 59 0d |or %pre|c UNARY.|
|00005520| 09 09 7b 20 24 24 20 3d | 20 6d 61 6b 65 5f 70 6f |..{ $$ =| make_po|
|00005530| 69 6e 74 65 72 5f 64 65 | 63 6c 61 72 61 74 6f 72 |inter_de|clarator|
|00005540| 20 28 24 32 2c 20 24 33 | 29 3b 20 7d 0d 09 7c 20 | ($2, $3|); }..| |
|00005550| 54 59 50 45 4e 41 4d 45 | 0d 09 3b 0d 0d 2f 2a 20 |TYPENAME|..;../* |
|00005560| 4b 69 6e 64 73 20 6f 66 | 20 64 65 63 6c 61 72 61 |Kinds of| declara|
|00005570| 74 6f 72 20 74 68 61 74 | 20 63 61 6e 20 61 70 70 |tor that| can app|
|00005580| 65 61 72 20 69 6e 20 61 | 20 70 61 72 61 6d 65 74 |ear in a| paramet|
|00005590| 65 72 20 6c 69 73 74 0d | 20 20 20 69 6e 20 61 64 |er list.| in ad|
|000055a0| 64 69 74 69 6f 6e 20 74 | 6f 20 6e 6f 74 79 70 65 |dition t|o notype|
|000055b0| 5f 64 65 63 6c 61 72 61 | 74 6f 72 2e 20 20 54 68 |_declara|tor. Th|
|000055c0| 69 73 20 69 73 20 6c 69 | 6b 65 20 61 66 74 65 72 |is is li|ke after|
|000055d0| 5f 74 79 70 65 5f 64 65 | 63 6c 61 72 61 74 6f 72 |_type_de|clarator|
|000055e0| 0d 20 20 20 62 75 74 20 | 64 6f 65 73 20 6e 6f 74 |. but |does not|
|000055f0| 20 61 6c 6c 6f 77 20 61 | 20 74 79 70 65 64 65 66 | allow a| typedef|
|00005600| 20 6e 61 6d 65 20 69 6e | 20 70 61 72 65 6e 74 68 | name in| parenth|
|00005610| 65 73 65 73 20 61 73 20 | 61 6e 20 69 64 65 6e 74 |eses as |an ident|
|00005620| 69 66 69 65 72 0d 20 20 | 20 28 62 65 63 61 75 73 |ifier. | (becaus|
|00005630| 65 20 69 74 20 77 6f 75 | 6c 64 20 63 6f 6e 66 6c |e it wou|ld confl|
|00005640| 69 63 74 20 77 69 74 68 | 20 61 20 66 75 6e 63 74 |ict with| a funct|
|00005650| 69 6f 6e 20 77 69 74 68 | 20 74 68 61 74 20 74 79 |ion with| that ty|
|00005660| 70 65 64 65 66 20 61 73 | 20 61 72 67 29 2e 20 20 |pedef as| arg). |
|00005670| 2a 2f 0d 0d 70 61 72 6d | 5f 64 65 63 6c 61 72 61 |*/..parm|_declara|
|00005680| 74 6f 72 3a 0d 09 20 20 | 70 61 72 6d 5f 64 65 63 |tor:.. |parm_dec|
|00005690| 6c 61 72 61 74 6f 72 20 | 27 28 27 20 70 61 72 6d |larator |'(' parm|
|000056a0| 6c 69 73 74 5f 6f 72 5f | 69 64 65 6e 74 69 66 69 |list_or_|identifi|
|000056b0| 65 72 73 20 20 25 70 72 | 65 63 20 27 2e 27 0d 09 |ers %pr|ec '.'..|
|000056c0| 09 7b 20 24 24 20 3d 20 | 62 75 69 6c 64 5f 6e 74 |.{ $$ = |build_nt|
|000056d0| 20 28 43 41 4c 4c 5f 45 | 58 50 52 2c 20 24 31 2c | (CALL_E|XPR, $1,|
|000056e0| 20 24 33 2c 20 4e 55 4c | 4c 5f 54 52 45 45 29 3b | $3, NUL|L_TREE);|
|000056f0| 20 7d 0d 2f 2a 09 7c 20 | 70 61 72 6d 5f 64 65 63 | }./*.| |parm_dec|
|00005700| 6c 61 72 61 74 6f 72 20 | 27 28 27 20 65 72 72 6f |larator |'(' erro|
|00005710| 72 20 27 29 27 20 20 25 | 70 72 65 63 20 27 2e 27 |r ')' %|prec '.'|
|00005720| 0d 09 09 7b 20 24 24 20 | 3d 20 62 75 69 6c 64 5f |...{ $$ |= build_|
|00005730| 6e 74 20 28 43 41 4c 4c | 5f 45 58 50 52 2c 20 24 |nt (CALL|_EXPR, $|
|00005740| 31 2c 20 4e 55 4c 4c 5f | 54 52 45 45 2c 20 4e 55 |1, NULL_|TREE, NU|
|00005750| 4c 4c 5f 54 52 45 45 29 | 3b 0d 09 09 20 20 70 6f |LL_TREE)|;... po|
|00005760| 70 6c 65 76 65 6c 20 28 | 30 2c 20 30 2c 20 30 29 |plevel (|0, 0, 0)|
|00005770| 3b 20 7d 20 20 2a 2f 0d | 09 7c 20 70 61 72 6d 5f |; } */.|.| parm_|
|00005780| 64 65 63 6c 61 72 61 74 | 6f 72 20 27 5b 27 20 65 |declarat|or '[' e|
|00005790| 78 70 72 20 27 5d 27 20 | 20 25 70 72 65 63 20 27 |xpr ']' | %prec '|
|000057a0| 2e 27 0d 09 09 7b 20 24 | 24 20 3d 20 62 75 69 6c |.'...{ $|$ = buil|
|000057b0| 64 5f 6e 74 20 28 41 52 | 52 41 59 5f 52 45 46 2c |d_nt (AR|RAY_REF,|
|000057c0| 20 24 31 2c 20 24 33 29 | 3b 20 7d 0d 09 7c 20 70 | $1, $3)|; }..| p|
|000057d0| 61 72 6d 5f 64 65 63 6c | 61 72 61 74 6f 72 20 27 |arm_decl|arator '|
|000057e0| 5b 27 20 27 5d 27 20 20 | 25 70 72 65 63 20 27 2e |[' ']' |%prec '.|
|000057f0| 27 0d 09 09 7b 20 24 24 | 20 3d 20 62 75 69 6c 64 |'...{ $$| = build|
|00005800| 5f 6e 74 20 28 41 52 52 | 41 59 5f 52 45 46 2c 20 |_nt (ARR|AY_REF, |
|00005810| 24 31 2c 20 4e 55 4c 4c | 5f 54 52 45 45 29 3b 20 |$1, NULL|_TREE); |
|00005820| 7d 0d 09 7c 20 27 2a 27 | 20 74 79 70 65 5f 71 75 |}..| '*'| type_qu|
|00005830| 61 6c 73 20 70 61 72 6d | 5f 64 65 63 6c 61 72 61 |als parm|_declara|
|00005840| 74 6f 72 20 20 25 70 72 | 65 63 20 55 4e 41 52 59 |tor %pr|ec UNARY|
|00005850| 0d 09 09 7b 20 24 24 20 | 3d 20 6d 61 6b 65 5f 70 |...{ $$ |= make_p|
|00005860| 6f 69 6e 74 65 72 5f 64 | 65 63 6c 61 72 61 74 6f |ointer_d|eclarato|
|00005870| 72 20 28 24 32 2c 20 24 | 33 29 3b 20 7d 0d 09 7c |r ($2, $|3); }..||
|00005880| 20 54 59 50 45 4e 41 4d | 45 0d 09 3b 0d 0d 2f 2a | TYPENAM|E..;../*|
|00005890| 20 41 20 64 65 63 6c 61 | 72 61 74 6f 72 20 61 6c | A decla|rator al|
|000058a0| 6c 6f 77 65 64 20 77 68 | 65 74 68 65 72 20 6f 72 |lowed wh|ether or|
|000058b0| 20 6e 6f 74 20 74 68 65 | 72 65 20 68 61 73 20 62 | not the|re has b|
|000058c0| 65 65 6e 0d 20 20 20 61 | 6e 20 65 78 70 6c 69 63 |een. a|n explic|
|000058d0| 69 74 20 74 79 70 65 73 | 70 65 63 2e 20 20 54 68 |it types|pec. Th|
|000058e0| 65 73 65 20 63 61 6e 6e | 6f 74 20 72 65 64 65 63 |ese cann|ot redec|
|000058f0| 6c 61 72 65 20 61 20 74 | 79 70 65 64 65 66 2d 6e |lare a t|ypedef-n|
|00005900| 61 6d 65 2e 20 20 2a 2f | 0d 0d 6e 6f 74 79 70 65 |ame. */|..notype|
|00005910| 5f 64 65 63 6c 61 72 61 | 74 6f 72 3a 0d 09 20 20 |_declara|tor:.. |
|00005920| 6e 6f 74 79 70 65 5f 64 | 65 63 6c 61 72 61 74 6f |notype_d|eclarato|
|00005930| 72 20 27 28 27 20 70 61 | 72 6d 6c 69 73 74 5f 6f |r '(' pa|rmlist_o|
|00005940| 72 5f 69 64 65 6e 74 69 | 66 69 65 72 73 20 20 25 |r_identi|fiers %|
|00005950| 70 72 65 63 20 27 2e 27 | 0d 09 09 7b 20 24 24 20 |prec '.'|...{ $$ |
|00005960| 3d 20 62 75 69 6c 64 5f | 6e 74 20 28 43 41 4c 4c |= build_|nt (CALL|
|00005970| 5f 45 58 50 52 2c 20 24 | 31 2c 20 24 33 2c 20 4e |_EXPR, $|1, $3, N|
|00005980| 55 4c 4c 5f 54 52 45 45 | 29 3b 20 7d 0d 2f 2a 09 |ULL_TREE|); }./*.|
|00005990| 7c 20 6e 6f 74 79 70 65 | 5f 64 65 63 6c 61 72 61 || notype|_declara|
|000059a0| 74 6f 72 20 27 28 27 20 | 65 72 72 6f 72 20 27 29 |tor '(' |error ')|
|000059b0| 27 20 20 25 70 72 65 63 | 20 27 2e 27 0d 09 09 7b |' %prec| '.'...{|
|000059c0| 20 24 24 20 3d 20 62 75 | 69 6c 64 5f 6e 74 20 28 | $$ = bu|ild_nt (|
|000059d0| 43 41 4c 4c 5f 45 58 50 | 52 2c 20 24 31 2c 20 4e |CALL_EXP|R, $1, N|
|000059e0| 55 4c 4c 5f 54 52 45 45 | 2c 20 4e 55 4c 4c 5f 54 |ULL_TREE|, NULL_T|
|000059f0| 52 45 45 29 3b 0d 09 09 | 20 20 70 6f 70 6c 65 76 |REE);...| poplev|
|00005a00| 65 6c 20 28 30 2c 20 30 | 2c 20 30 29 3b 20 7d 20 |el (0, 0|, 0); } |
|00005a10| 20 2a 2f 0d 09 7c 20 27 | 28 27 20 6e 6f 74 79 70 | */..| '|(' notyp|
|00005a20| 65 5f 64 65 63 6c 61 72 | 61 74 6f 72 20 27 29 27 |e_declar|ator ')'|
|00005a30| 0d 09 09 7b 20 24 24 20 | 3d 20 24 32 3b 20 7d 0d |...{ $$ |= $2; }.|
|00005a40| 09 7c 20 27 2a 27 20 74 | 79 70 65 5f 71 75 61 6c |.| '*' t|ype_qual|
|00005a50| 73 20 6e 6f 74 79 70 65 | 5f 64 65 63 6c 61 72 61 |s notype|_declara|
|00005a60| 74 6f 72 20 20 25 70 72 | 65 63 20 55 4e 41 52 59 |tor %pr|ec UNARY|
|00005a70| 0d 09 09 7b 20 24 24 20 | 3d 20 6d 61 6b 65 5f 70 |...{ $$ |= make_p|
|00005a80| 6f 69 6e 74 65 72 5f 64 | 65 63 6c 61 72 61 74 6f |ointer_d|eclarato|
|00005a90| 72 20 28 24 32 2c 20 24 | 33 29 3b 20 7d 0d 09 7c |r ($2, $|3); }..||
|00005aa0| 20 6e 6f 74 79 70 65 5f | 64 65 63 6c 61 72 61 74 | notype_|declarat|
|00005ab0| 6f 72 20 27 5b 27 20 65 | 78 70 72 20 27 5d 27 20 |or '[' e|xpr ']' |
|00005ac0| 20 25 70 72 65 63 20 27 | 2e 27 0d 09 09 7b 20 24 | %prec '|.'...{ $|
|00005ad0| 24 20 3d 20 62 75 69 6c | 64 5f 6e 74 20 28 41 52 |$ = buil|d_nt (AR|
|00005ae0| 52 41 59 5f 52 45 46 2c | 20 24 31 2c 20 24 33 29 |RAY_REF,| $1, $3)|
|00005af0| 3b 20 7d 0d 09 7c 20 6e | 6f 74 79 70 65 5f 64 65 |; }..| n|otype_de|
|00005b00| 63 6c 61 72 61 74 6f 72 | 20 27 5b 27 20 27 5d 27 |clarator| '[' ']'|
|00005b10| 20 20 25 70 72 65 63 20 | 27 2e 27 0d 09 09 7b 20 | %prec |'.'...{ |
|00005b20| 24 24 20 3d 20 62 75 69 | 6c 64 5f 6e 74 20 28 41 |$$ = bui|ld_nt (A|
|00005b30| 52 52 41 59 5f 52 45 46 | 2c 20 24 31 2c 20 4e 55 |RRAY_REF|, $1, NU|
|00005b40| 4c 4c 5f 54 52 45 45 29 | 3b 20 7d 0d 09 7c 20 49 |LL_TREE)|; }..| I|
|00005b50| 44 45 4e 54 49 46 49 45 | 52 0d 09 3b 0d 0d 73 74 |DENTIFIE|R..;..st|
|00005b60| 72 75 63 74 73 70 3a 0d | 09 20 20 53 54 52 55 43 |ructsp:.|. STRUC|
|00005b70| 54 20 69 64 65 6e 74 69 | 66 69 65 72 20 27 7b 27 |T identi|fier '{'|
|00005b80| 0d 09 09 7b 20 24 24 20 | 3d 20 73 74 61 72 74 5f |...{ $$ |= start_|
|00005b90| 73 74 72 75 63 74 20 28 | 52 45 43 4f 52 44 5f 54 |struct (|RECORD_T|
|00005ba0| 59 50 45 2c 20 24 32 29 | 3b 0d 09 09 20 20 2f 2a |YPE, $2)|;... /*|
|00005bb0| 20 53 74 61 72 74 20 73 | 63 6f 70 65 20 6f 66 20 | Start s|cope of |
|00005bc0| 74 61 67 20 62 65 66 6f | 72 65 20 70 61 72 73 69 |tag befo|re parsi|
|00005bd0| 6e 67 20 63 6f 6d 70 6f | 6e 65 6e 74 73 2e 20 20 |ng compo|nents. |
|00005be0| 2a 2f 0d 09 09 7d 0d 09 | 20 20 63 6f 6d 70 6f 6e |*/...}..| compon|
|00005bf0| 65 6e 74 5f 64 65 63 6c | 5f 6c 69 73 74 20 27 7d |ent_decl|_list '}|
|00005c00| 27 0d 09 09 7b 20 24 24 | 20 3d 20 66 69 6e 69 73 |'...{ $$| = finis|
|00005c10| 68 5f 73 74 72 75 63 74 | 20 28 24 3c 74 74 79 70 |h_struct| ($<ttyp|
|00005c20| 65 3e 34 2c 20 24 35 29 | 3b 0d 09 09 20 20 2f 2a |e>4, $5)|;... /*|
|00005c30| 20 52 65 61 6c 6c 79 20 | 64 65 66 69 6e 65 20 74 | Really |define t|
|00005c40| 68 65 20 73 74 72 75 63 | 74 75 72 65 2e 20 20 2a |he struc|ture. *|
|00005c50| 2f 0d 09 09 7d 0d 09 7c | 20 53 54 52 55 43 54 20 |/...}..|| STRUCT |
|00005c60| 27 7b 27 20 63 6f 6d 70 | 6f 6e 65 6e 74 5f 64 65 |'{' comp|onent_de|
|00005c70| 63 6c 5f 6c 69 73 74 20 | 27 7d 27 0d 09 09 7b 20 |cl_list |'}'...{ |
|00005c80| 24 24 20 3d 20 66 69 6e | 69 73 68 5f 73 74 72 75 |$$ = fin|ish_stru|
|00005c90| 63 74 20 28 73 74 61 72 | 74 5f 73 74 72 75 63 74 |ct (star|t_struct|
|00005ca0| 20 28 52 45 43 4f 52 44 | 5f 54 59 50 45 2c 20 4e | (RECORD|_TYPE, N|
|00005cb0| 55 4c 4c 5f 54 52 45 45 | 29 2c 0d 09 09 09 09 20 |ULL_TREE|),..... |
|00005cc0| 20 20 20 20 20 24 33 29 | 3b 20 7d 0d 09 7c 20 53 | $3)|; }..| S|
|00005cd0| 54 52 55 43 54 20 69 64 | 65 6e 74 69 66 69 65 72 |TRUCT id|entifier|
|00005ce0| 0d 09 09 7b 20 24 24 20 | 3d 20 78 72 65 66 5f 74 |...{ $$ |= xref_t|
|00005cf0| 61 67 20 28 52 45 43 4f | 52 44 5f 54 59 50 45 2c |ag (RECO|RD_TYPE,|
|00005d00| 20 24 32 29 3b 20 7d 0d | 09 7c 20 55 4e 49 4f 4e | $2); }.|.| UNION|
|00005d10| 20 69 64 65 6e 74 69 66 | 69 65 72 20 27 7b 27 0d | identif|ier '{'.|
|00005d20| 09 09 7b 20 24 24 20 3d | 20 73 74 61 72 74 5f 73 |..{ $$ =| start_s|
|00005d30| 74 72 75 63 74 20 28 55 | 4e 49 4f 4e 5f 54 59 50 |truct (U|NION_TYP|
|00005d40| 45 2c 20 24 32 29 3b 20 | 7d 0d 09 20 20 63 6f 6d |E, $2); |}.. com|
|00005d50| 70 6f 6e 65 6e 74 5f 64 | 65 63 6c 5f 6c 69 73 74 |ponent_d|ecl_list|
|00005d60| 20 27 7d 27 0d 09 09 7b | 20 24 24 20 3d 20 66 69 | '}'...{| $$ = fi|
|00005d70| 6e 69 73 68 5f 73 74 72 | 75 63 74 20 28 24 3c 74 |nish_str|uct ($<t|
|00005d80| 74 79 70 65 3e 34 2c 20 | 24 35 29 3b 20 7d 0d 09 |type>4, |$5); }..|
|00005d90| 7c 20 55 4e 49 4f 4e 20 | 27 7b 27 20 63 6f 6d 70 || UNION |'{' comp|
|00005da0| 6f 6e 65 6e 74 5f 64 65 | 63 6c 5f 6c 69 73 74 20 |onent_de|cl_list |
|00005db0| 27 7d 27 0d 09 09 7b 20 | 24 24 20 3d 20 66 69 6e |'}'...{ |$$ = fin|
|00005dc0| 69 73 68 5f 73 74 72 75 | 63 74 20 28 73 74 61 72 |ish_stru|ct (star|
|00005dd0| 74 5f 73 74 72 75 63 74 | 20 28 55 4e 49 4f 4e 5f |t_struct| (UNION_|
|00005de0| 54 59 50 45 2c 20 4e 55 | 4c 4c 5f 54 52 45 45 29 |TYPE, NU|LL_TREE)|
|00005df0| 2c 0d 09 09 09 09 20 20 | 20 20 20 20 24 33 29 3b |,..... | $3);|
|00005e00| 20 7d 0d 09 7c 20 55 4e | 49 4f 4e 20 69 64 65 6e | }..| UN|ION iden|
|00005e10| 74 69 66 69 65 72 0d 09 | 09 7b 20 24 24 20 3d 20 |tifier..|.{ $$ = |
|00005e20| 78 72 65 66 5f 74 61 67 | 20 28 55 4e 49 4f 4e 5f |xref_tag| (UNION_|
|00005e30| 54 59 50 45 2c 20 24 32 | 29 3b 20 7d 0d 09 7c 20 |TYPE, $2|); }..| |
|00005e40| 45 4e 55 4d 20 69 64 65 | 6e 74 69 66 69 65 72 20 |ENUM ide|ntifier |
|00005e50| 27 7b 27 0d 09 09 7b 20 | 24 3c 69 74 79 70 65 3e |'{'...{ |$<itype>|
|00005e60| 33 20 3d 20 73 75 73 70 | 65 6e 64 5f 6d 6f 6d 65 |3 = susp|end_mome|
|00005e70| 6e 74 61 72 79 20 28 29 | 3b 0d 09 09 20 20 24 24 |ntary ()|;... $$|
|00005e80| 20 3d 20 73 74 61 72 74 | 5f 65 6e 75 6d 20 28 24 | = start|_enum ($|
|00005e90| 32 29 3b 20 7d 0d 09 20 | 20 65 6e 75 6d 6c 69 73 |2); }.. | enumlis|
|00005ea0| 74 20 6d 61 79 62 65 63 | 6f 6d 6d 61 5f 77 61 72 |t maybec|omma_war|
|00005eb0| 6e 20 27 7d 27 0d 09 09 | 7b 20 24 24 20 3d 20 66 |n '}'...|{ $$ = f|
|00005ec0| 69 6e 69 73 68 5f 65 6e | 75 6d 20 28 24 3c 74 74 |inish_en|um ($<tt|
|00005ed0| 79 70 65 3e 34 2c 20 6e | 72 65 76 65 72 73 65 20 |ype>4, n|reverse |
|00005ee0| 28 24 35 29 29 3b 0d 09 | 09 20 20 72 65 73 75 6d |($5));..|. resum|
|00005ef0| 65 5f 6d 6f 6d 65 6e 74 | 61 72 79 20 28 24 3c 69 |e_moment|ary ($<i|
|00005f00| 74 79 70 65 3e 33 29 3b | 20 7d 0d 09 7c 20 45 4e |type>3);| }..| EN|
|00005f10| 55 4d 20 27 7b 27 0d 09 | 09 7b 20 24 3c 69 74 79 |UM '{'..|.{ $<ity|
|00005f20| 70 65 3e 32 20 3d 20 73 | 75 73 70 65 6e 64 5f 6d |pe>2 = s|uspend_m|
|00005f30| 6f 6d 65 6e 74 61 72 79 | 20 28 29 3b 0d 09 09 20 |omentary| ();... |
|00005f40| 20 24 24 20 3d 20 73 74 | 61 72 74 5f 65 6e 75 6d | $$ = st|art_enum|
|00005f50| 20 28 4e 55 4c 4c 5f 54 | 52 45 45 29 3b 20 7d 0d | (NULL_T|REE); }.|
|00005f60| 09 20 20 65 6e 75 6d 6c | 69 73 74 20 6d 61 79 62 |. enuml|ist mayb|
|00005f70| 65 63 6f 6d 6d 61 5f 77 | 61 72 6e 20 27 7d 27 0d |ecomma_w|arn '}'.|
|00005f80| 09 09 7b 20 24 24 20 3d | 20 66 69 6e 69 73 68 5f |..{ $$ =| finish_|
|00005f90| 65 6e 75 6d 20 28 24 3c | 74 74 79 70 65 3e 33 2c |enum ($<|ttype>3,|
|00005fa0| 20 6e 72 65 76 65 72 73 | 65 20 28 24 34 29 29 3b | nrevers|e ($4));|
|00005fb0| 0d 09 09 20 20 72 65 73 | 75 6d 65 5f 6d 6f 6d 65 |... res|ume_mome|
|00005fc0| 6e 74 61 72 79 20 28 24 | 3c 69 74 79 70 65 3e 32 |ntary ($|<itype>2|
|00005fd0| 29 3b 20 7d 0d 09 7c 20 | 45 4e 55 4d 20 69 64 65 |); }..| |ENUM ide|
|00005fe0| 6e 74 69 66 69 65 72 0d | 09 09 7b 20 24 24 20 3d |ntifier.|..{ $$ =|
|00005ff0| 20 78 72 65 66 5f 74 61 | 67 20 28 45 4e 55 4d 45 | xref_ta|g (ENUME|
|00006000| 52 41 4c 5f 54 59 50 45 | 2c 20 24 32 29 3b 20 7d |RAL_TYPE|, $2); }|
|00006010| 0d 09 3b 0d 0d 6d 61 79 | 62 65 63 6f 6d 6d 61 3a |..;..may|becomma:|
|00006020| 0d 09 20 20 2f 2a 20 65 | 6d 70 74 79 20 2a 2f 0d |.. /* e|mpty */.|
|00006030| 09 7c 20 27 2c 27 0d 09 | 3b 0d 0d 6d 61 79 62 65 |.| ','..|;..maybe|
|00006040| 63 6f 6d 6d 61 5f 77 61 | 72 6e 3a 0d 09 20 20 2f |comma_wa|rn:.. /|
|00006050| 2a 20 65 6d 70 74 79 20 | 2a 2f 0d 09 7c 20 27 2c |* empty |*/..| ',|
|00006060| 27 0d 09 09 7b 20 69 66 | 20 28 70 65 64 61 6e 74 |'...{ if| (pedant|
|00006070| 69 63 29 20 77 61 72 6e | 69 6e 67 20 28 22 63 6f |ic) warn|ing ("co|
|00006080| 6d 6d 61 20 61 74 20 65 | 6e 64 20 6f 66 20 65 6e |mma at e|nd of en|
|00006090| 75 6d 65 72 61 74 6f 72 | 20 6c 69 73 74 22 29 3b |umerator| list");|
|000060a0| 20 7d 0d 09 3b 0d 0d 63 | 6f 6d 70 6f 6e 65 6e 74 | }..;..c|omponent|
|000060b0| 5f 64 65 63 6c 5f 6c 69 | 73 74 3a 20 20 20 2f 2a |_decl_li|st: /*|
|000060c0| 20 65 6d 70 74 79 20 2a | 2f 0d 09 09 7b 20 24 24 | empty *|/...{ $$|
|000060d0| 20 3d 20 4e 55 4c 4c 5f | 54 52 45 45 3b 20 7d 0d | = NULL_|TREE; }.|
|000060e0| 09 7c 20 63 6f 6d 70 6f | 6e 65 6e 74 5f 64 65 63 |.| compo|nent_dec|
|000060f0| 6c 5f 6c 69 73 74 20 63 | 6f 6d 70 6f 6e 65 6e 74 |l_list c|omponent|
|00006100| 5f 64 65 63 6c 20 27 3b | 27 0d 09 09 7b 20 24 24 |_decl ';|'...{ $$|
|00006110| 20 3d 20 63 68 61 69 6e | 6f 6e 20 28 24 31 2c 20 | = chain|on ($1, |
|00006120| 24 32 29 3b 20 7d 0d 09 | 7c 20 63 6f 6d 70 6f 6e |$2); }..|| compon|
|00006130| 65 6e 74 5f 64 65 63 6c | 5f 6c 69 73 74 20 27 3b |ent_decl|_list ';|
|00006140| 27 0d 09 09 7b 20 69 66 | 20 28 70 65 64 61 6e 74 |'...{ if| (pedant|
|00006150| 69 63 29 0d 09 09 20 20 | 20 20 77 61 72 6e 69 6e |ic)... | warnin|
|00006160| 67 20 28 22 65 78 74 72 | 61 20 73 65 6d 69 63 6f |g ("extr|a semico|
|00006170| 6c 6f 6e 20 69 6e 20 73 | 74 72 75 63 74 20 6f 72 |lon in s|truct or|
|00006180| 20 75 6e 69 6f 6e 20 73 | 70 65 63 69 66 69 65 64 | union s|pecified|
|00006190| 22 29 3b 20 7d 0d 09 3b | 0d 0d 2f 2a 20 54 68 65 |"); }..;|../* The|
|000061a0| 72 65 20 69 73 20 61 20 | 73 68 69 66 74 2d 72 65 |re is a |shift-re|
|000061b0| 64 75 63 65 20 63 6f 6e | 66 6c 69 63 74 20 68 65 |duce con|flict he|
|000061c0| 72 65 2c 20 62 65 63 61 | 75 73 65 20 60 63 6f 6d |re, beca|use `com|
|000061d0| 70 6f 6e 65 6e 74 73 27 | 20 6d 61 79 0d 20 20 20 |ponents'| may. |
|000061e0| 73 74 61 72 74 20 77 69 | 74 68 20 61 20 60 74 79 |start wi|th a `ty|
|000061f0| 70 65 6e 61 6d 65 27 2e | 20 20 49 74 20 68 61 70 |pename'.| It hap|
|00006200| 70 65 6e 73 20 74 68 61 | 74 20 73 68 69 66 74 69 |pens tha|t shifti|
|00006210| 6e 67 20 28 74 68 65 20 | 64 65 66 61 75 6c 74 20 |ng (the |default |
|00006220| 72 65 73 6f 6c 75 74 69 | 6f 6e 29 0d 20 20 20 64 |resoluti|on). d|
|00006230| 6f 65 73 20 74 68 65 20 | 72 69 67 68 74 20 74 68 |oes the |right th|
|00006240| 69 6e 67 2c 20 62 65 63 | 61 75 73 65 20 69 74 20 |ing, bec|ause it |
|00006250| 74 72 65 61 74 73 20 74 | 68 65 20 60 74 79 70 65 |treats t|he `type|
|00006260| 6e 61 6d 65 27 20 61 73 | 20 70 61 72 74 20 6f 66 |name' as| part of|
|00006270| 0d 20 20 20 61 20 60 74 | 79 70 65 64 5f 74 79 70 |. a `t|yped_typ|
|00006280| 65 73 70 65 63 73 27 2e | 0d 0d 20 20 20 49 74 20 |especs'.|.. It |
|00006290| 69 73 20 70 6f 73 73 69 | 62 6c 65 20 74 68 61 74 |is possi|ble that|
|000062a0| 20 74 68 69 73 20 73 61 | 6d 65 20 74 65 63 68 6e | this sa|me techn|
|000062b0| 69 71 75 65 20 77 6f 75 | 6c 64 20 61 6c 6c 6f 77 |ique wou|ld allow|
|000062c0| 20 74 68 65 20 64 69 73 | 74 69 6e 63 74 69 6f 6e | the dis|tinction|
|000062d0| 0d 20 20 20 62 65 74 77 | 65 65 6e 20 60 6e 6f 74 |. betw|een `not|
|000062e0| 79 70 65 5f 69 6e 69 74 | 64 65 63 6c 73 27 20 61 |ype_init|decls' a|
|000062f0| 6e 64 20 60 69 6e 69 74 | 64 65 63 6c 73 27 20 74 |nd `init|decls' t|
|00006300| 6f 20 62 65 20 65 6c 69 | 6d 69 6e 61 74 65 64 2e |o be eli|minated.|
|00006310| 0d 20 20 20 42 75 74 20 | 49 20 61 6d 20 62 65 69 |. But |I am bei|
|00006320| 6e 67 20 63 61 75 74 69 | 6f 75 73 20 61 6e 64 20 |ng cauti|ous and |
|00006330| 6e 6f 74 20 74 72 79 69 | 6e 67 20 69 74 2e 20 20 |not tryi|ng it. |
|00006340| 2a 2f 0d 0d 63 6f 6d 70 | 6f 6e 65 6e 74 5f 64 65 |*/..comp|onent_de|
|00006350| 63 6c 3a 0d 09 74 79 70 | 65 64 5f 74 79 70 65 73 |cl:..typ|ed_types|
|00006360| 70 65 63 73 20 73 65 74 | 73 70 65 63 73 20 63 6f |pecs set|specs co|
|00006370| 6d 70 6f 6e 65 6e 74 73 | 0d 09 09 7b 20 24 24 20 |mponents|...{ $$ |
|00006380| 3d 20 24 33 3b 0d 09 09 | 20 20 63 75 72 72 65 6e |= $3;...| curren|
|00006390| 74 5f 64 65 63 6c 73 70 | 65 63 73 20 3d 20 54 52 |t_declsp|ecs = TR|
|000063a0| 45 45 5f 56 41 4c 55 45 | 20 28 64 65 63 6c 73 70 |EE_VALUE| (declsp|
|000063b0| 65 63 5f 73 74 61 63 6b | 29 3b 0d 09 09 20 20 64 |ec_stack|);... d|
|000063c0| 65 63 6c 73 70 65 63 5f | 73 74 61 63 6b 20 3d 20 |eclspec_|stack = |
|000063d0| 54 52 45 45 5f 43 48 41 | 49 4e 20 28 64 65 63 6c |TREE_CHA|IN (decl|
|000063e0| 73 70 65 63 5f 73 74 61 | 63 6b 29 3b 0d 09 09 20 |spec_sta|ck);... |
|000063f0| 20 72 65 73 75 6d 65 5f | 6d 6f 6d 65 6e 74 61 72 | resume_|momentar|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.